The following changes were made by Jim Blandy

<jimb@zwingli.cygnus.com> and David Taylor
 	<taylor@texas.cygnus.com> as part of a project to merge in changes
 	made by HP; HP did not create ChangeLog entries.

	* config/mp-enable-tui: New file.
	(TUI_CFLAGS): Search devo's include directory, as long as we're
 	totally ruining modularity.
	(INCLUDE_SRCDIR): New var.
	(GDB_TUI_SRCDIR): Fix syntax error.

	* configure.in: Check the --enable-tui flag; if it's set, include
 	a makefile fragment that #defines TUI and adds the needed #include
 	directories.
	(*-*-hpux*): New host; use sysdep-hpux.h.

	* Makefile.in (.c.o): Check the variable set in the makefile
	fragment above.

	* display.c (term_goto): declare it.
	(insert_some_chars): set it.
	(delete_chars): set it.

	* readline.c: add tui include files surrounded by TUI.
	(rl_reset): new function, move some of rl_abort functionality to
 	here.
	(rl_abort): call rl_reset.
	(rl_getc): tui changes.
	(init_terminal_io): tui changes.

	* readline.h (tui_version, fputc_unfiltered, fputs_unfiltered,
	tui_tputs): declare if TUI is defined.

	* rltty.c (prepare_terminal_settings): additional comment.

	* signals.c: add tui include files surrounded by TUI.  move #if
 	and #endif to column 1 so HP's compiler will accept them.  Remove
 	declaration of tuiDoAndReturnToTop since it's declared in tui.h.
	(rl_handle_sigwinch): call tuiDoAndReturnToTop if TUI defined.
  	(rl_handle_sigwinch_on_clear): define if TUI defined.
	(rl_set_signals): if TUI, avoid infinite recursion.
	(rl_clear_signals): install rl_handle_sigwinch_on_clear.

	* sysdep-hpux.h: New file.
This commit is contained in:
David Taylor
1998-12-08 16:33:13 +00:00
parent b98e2024f4
commit 59bfc16ae3
6 changed files with 76 additions and 17 deletions

View File

@ -52,6 +52,7 @@ sysdep-6irix.h
sysdep-aix.h sysdep-aix.h
sysdep-cxux7.h sysdep-cxux7.h
sysdep-hpux11.h sysdep-hpux11.h
sysdep-hpux.h
sysdep-irix.h sysdep-irix.h
sysdep-linux.h sysdep-linux.h
sysdep-norm.h sysdep-norm.h

View File

@ -1,3 +1,50 @@
Fri Dec 4 15:25:41 1998 David Taylor <taylor@texas.cygnus.com>
The following changes were made by Jim Blandy
<jimb@zwingli.cygnus.com> and David Taylor
<taylor@texas.cygnus.com> as part of a project to merge in changes
made by HP; HP did not create ChangeLog entries.
* config/mp-enable-tui: New file.
(TUI_CFLAGS): Search devo's include directory, as long as we're
totally ruining modularity.
(INCLUDE_SRCDIR): New var.
(GDB_TUI_SRCDIR): Fix syntax error.
* configure.in: Check the --enable-tui flag; if it's set, include
a makefile fragment that #defines TUI and adds the needed #include
directories.
(*-*-hpux*): New host; use sysdep-hpux.h.
* Makefile.in (.c.o): Check the variable set in the makefile
fragment above.
* display.c (term_goto): declare it.
(insert_some_chars): set it.
(delete_chars): set it.
* readline.c: add tui include files surrounded by TUI.
(rl_reset): new function, move some of rl_abort functionality to
here.
(rl_abort): call rl_reset.
(rl_getc): tui changes.
(init_terminal_io): tui changes.
* readline.h (tui_version, fputc_unfiltered, fputs_unfiltered,
tui_tputs): declare if TUI is defined.
* rltty.c (prepare_terminal_settings): additional comment.
* signals.c: add tui include files surrounded by TUI. move #if
and #endif to column 1 so HP's compiler will accept them. Remove
declaration of tuiDoAndReturnToTop since it's declared in tui.h.
(rl_handle_sigwinch): call tuiDoAndReturnToTop if TUI defined.
(rl_handle_sigwinch_on_clear): define if TUI defined.
(rl_set_signals): if TUI, avoid infinite recursion.
(rl_clear_signals): install rl_handle_sigwinch_on_clear.
* sysdep-hpux.h: New file.
Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com> Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: Check cygwin* instead of cygwin32*. * configure.in: Check cygwin* instead of cygwin32*.

View File

@ -1,3 +1,7 @@
Thu Jul 9 17:03:26 1998 Edith Epstein <eepstein@sophia.cygnus.com>
* inc-hist.texi: one line change.
Wed Sep 20 12:57:29 1995 Ian Lance Taylor <ian@cygnus.com> Wed Sep 20 12:57:29 1995 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (maintainer-clean): New synonym for realclean. * Makefile.in (maintainer-clean): New synonym for realclean.

View File

@ -27,7 +27,7 @@ Permission is granted to copy and distribute translations of this manual
into another language, under the above conditions for modified versions. into another language, under the above conditions for modified versions.
@end ignore @end ignore
@node Using History Interactively @node Using History, Installing GDB, Command Line Editing, Top
@appendix Using History Interactively @appendix Using History Interactively
This chapter describes how to use the GNU History Library interactively, This chapter describes how to use the GNU History Library interactively,

View File

@ -39,7 +39,7 @@ This text describes GNU's command line editing interface.
* Readline Init File:: Customizing Readline from a user's view. * Readline Init File:: Customizing Readline from a user's view.
@end menu @end menu
@node Introduction and Notation @node Introduction and Notation, Readline Interaction, Command Line Editing, Command Line Editing
@section Introduction to Line Editing @section Introduction to Line Editing
The following paragraphs describe the notation we use to represent The following paragraphs describe the notation we use to represent
@ -62,7 +62,7 @@ In addition, several keys have their own names. Specifically,
stand for themselves when seen in this text, or in an init file stand for themselves when seen in this text, or in an init file
(@pxref{Readline Init File}, for more info). (@pxref{Readline Init File}, for more info).
@node Readline Interaction @node Readline Interaction, Readline Init File, Introduction and Notation, Command Line Editing
@section Readline Interaction @section Readline Interaction
@cindex interaction, readline @cindex interaction, readline
@ -84,7 +84,7 @@ regardless of the location of the cursor within the line.
* Readline Arguments:: Giving numeric arguments to commands. * Readline Arguments:: Giving numeric arguments to commands.
@end menu @end menu
@node Readline Bare Essentials @node Readline Bare Essentials, Readline Movement Commands, Readline Interaction, Readline Interaction
@subsection Readline Bare Essentials @subsection Readline Bare Essentials
In order to enter characters into the line, simply type them. The typed In order to enter characters into the line, simply type them. The typed
@ -121,7 +121,7 @@ Undo the last thing that you did. You can undo all the way back to an
empty line. empty line.
@end table @end table
@node Readline Movement Commands @node Readline Movement Commands, Readline Killing Commands, Readline Bare Essentials, Readline Interaction
@subsection Readline Movement Commands @subsection Readline Movement Commands
The above table describes the most basic possible keystrokes that you need The above table describes the most basic possible keystrokes that you need
@ -147,7 +147,7 @@ Notice how @key{C-f} moves forward a character, while @key{M-f} moves
forward a word. It is a loose convention that control keystrokes forward a word. It is a loose convention that control keystrokes
operate on characters while meta keystrokes operate on words. operate on characters while meta keystrokes operate on words.
@node Readline Killing Commands @node Readline Killing Commands, Readline Arguments, Readline Movement Commands, Readline Interaction
@subsection Readline Killing Commands @subsection Readline Killing Commands
@dfn{Killing} text means to delete the text from the line, but to save @dfn{Killing} text means to delete the text from the line, but to save
@ -194,7 +194,7 @@ ring is not line specific; the text that you killed on a previously
typed line is available to be yanked back later, when you are typing typed line is available to be yanked back later, when you are typing
another line. another line.
@node Readline Arguments @node Readline Arguments,, Readline Killing Commands, Readline Interaction
@subsection Readline Arguments @subsection Readline Arguments
You can pass numeric arguments to Readline commands. Sometimes the You can pass numeric arguments to Readline commands. Sometimes the
@ -212,7 +212,7 @@ the remainder of the digits, and then the command. For example, to give
the @key{C-d} command an argument of 10, you could type @key{M-1 0 C-d}. the @key{C-d} command an argument of 10, you could type @key{M-1 0 C-d}.
@node Readline Init File @node Readline Init File,, Readline Interaction, Command Line Editing
@section Readline Init File @section Readline Init File
Although the Readline library comes with a set of @sc{gnu} Emacs-like Although the Readline library comes with a set of @sc{gnu} Emacs-like
@ -232,7 +232,7 @@ incorporating any changes that you might have made to it.
* Readline vi Mode:: Switching to @code{vi} mode in Readline. * Readline vi Mode:: Switching to @code{vi} mode in Readline.
@end menu @end menu
@node Readline Init Syntax @node Readline Init Syntax, Readline vi Mode, Readline Init File, Readline Init File
@subsection Readline Init Syntax @subsection Readline Init Syntax
There are only four constructs allowed in the @file{~/.inputrc} There are only four constructs allowed in the @file{~/.inputrc}
@ -339,7 +339,7 @@ In the above example, @key{C-u} is bound to the function
@end menu @end menu
@need 2000 @need 2000
@node Commands For Moving @node Commands For Moving, Commands For History, Readline Init Syntax, Readline Init Syntax
@subsubsection Commands For Moving @subsubsection Commands For Moving
@ftable @code @ftable @code
@ -367,7 +367,7 @@ Clear the screen leaving the current line at the top of the screen.
@end ftable @end ftable
@need 2000 @need 2000
@node Commands For History @node Commands For History, Commands For Text, Commands For Moving, Readline Init Syntax
@subsubsection Commands For Manipulating The History @subsubsection Commands For Manipulating The History
@ftable @code @ftable @code
@ -399,7 +399,7 @@ the the history as necessary.
@end ftable @end ftable
@need 2000 @need 2000
@node Commands For Text @node Commands For Text, Commands For Killing, Commands For History, Readline Init Syntax
@subsubsection Commands For Changing Text @subsubsection Commands For Changing Text
@ftable @code @ftable @code
@ -446,7 +446,7 @@ negative argument, do the previous word, but do not move point.
@end ftable @end ftable
@need 2000 @need 2000
@node Commands For Killing @node Commands For Killing, Numeric Arguments, Commands For Text, Readline Init Syntax
@subsubsection Killing And Yanking @subsubsection Killing And Yanking
@ftable @code @ftable @code
@ -481,7 +481,7 @@ the prior command is yank or yank-pop.
@end ftable @end ftable
@need 2000 @need 2000
@node Numeric Arguments @node Numeric Arguments, Commands For Completion, Commands For Killing, Readline Init Syntax
@subsubsection Specifying Numeric Arguments @subsubsection Specifying Numeric Arguments
@ftable @code @ftable @code
@ -496,7 +496,7 @@ Do what @key{C-u} does in @sc{gnu} Emacs. By default, this is not bound.
@need 2000 @need 2000
@node Commands For Completion @node Commands For Completion, Miscellaneous Commands, Numeric Arguments, Readline Init Syntax
@subsubsection Letting Readline Type For You @subsubsection Letting Readline Type For You
@ftable @code @ftable @code
@ -513,7 +513,7 @@ List the possible completions of the text before point.
@end ftable @end ftable
@need 2000 @need 2000
@node Miscellaneous Commands @node Miscellaneous Commands,, Commands For Completion, Readline Init Syntax
@subsubsection Some Miscellaneous Commands @subsubsection Some Miscellaneous Commands
@ftable @code @ftable @code
@ -547,7 +547,7 @@ command enough times to get back to the beginning.
@end ftable @end ftable
@need 2000 @need 2000
@node Readline vi Mode @node Readline vi Mode,, Readline Init Syntax, Readline Init File
@subsection Readline @code{vi} Mode @subsection Readline @code{vi} Mode
@cindex @code{vi} style command editing @cindex @code{vi} style command editing

7
readline/sysdep-hpux.h Normal file
View File

@ -0,0 +1,7 @@
/* System-dependent stuff for HP/UX 10.20 on HPPA */
#include <alloca.h>
#include <dirent.h>
typedef struct dirent dirent;