bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminfo entries for s390 237x terminal lines


From: Thomas Dickey
Subject: Re: Terminfo entries for s390 237x terminal lines
Date: Wed, 05 Feb 2014 21:11:27 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Feb 04, 2014 at 12:38:05PM +0100, Dr. Werner Fink wrote:
> Hi,
> 
> from a simple grep throughout the 3270 driver[1] I can see that
> on a 2370 terminal line there is colouring and also possible to
> draw masks.  Neverthless the block line input is independent
> from the input of any program like bash or dialog.  The input
> is collected by e.g. x3270 terminal program and send by the
> last CR.  Is there any capability .. beside `gn' .. which does
> describe such a behaviour?

not that I know.  I used 3270 terminals long ago, and (from noticing
programs like tn5250, c3270) was a little surprised initially that
they could be run via a serial connection.  However, some checking
shows RFC 1041 and RCS 2355 which give me the impression that they're
actually communicating with a server (using TN3270E protocol) which
can be told to use an ASCII mode.

Looking at this 

http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/s390/char/tty3270.c

I see a comment that the input area is the last two lines of the screen.
But other places in the driver don't show a particular limitation.
It pretends to be a vt100 (with colored text...)
 
>     Werner
> 
> 
> [1]
>   ncurses> grep -B2 -A8 'Esc ' /usr/src/linux/drivers/s390/char/tty3270.c
>     /*
>    * Erase line, 3 different cases:
>    *  Esc [ 0 K Erase from current position to end of line inclusive
>    *  Esc [ 1 K Erase from beginning of line to current position inclusive
>    *  Esc [ 2 K Erase entire line (without moving cursor)
>    */
>   static void
>   tty3270_erase_line(struct tty3270 *tp, int mode)
>   {
>         struct tty3270_line *line;
>         struct tty3270_cell *cell;
>         int i;
>   
>   --
>   /*
>    * Erase display, 3 different cases:
>    *  Esc [ 0 J Erase from current position to bottom of screen inclusive
>    *  Esc [ 1 J Erase from top of screen to current position inclusive
>    *  Esc [ 2 J Erase entire screen (without moving the cursor)
>    */
>   static void
>   tty3270_erase_display(struct tty3270 *tp, int mode)
>   {
>         int i;
>   
>         if (mode == 0) {
>                 tty3270_erase_line(tp, 0);
>   --
>   /*
>    * Set attributes found in an escape sequence.
>    *  Esc [ <attr> ; <attr> ; ... m
>    */
>   static void
>   tty3270_set_attributes(struct tty3270 *tp)
>   {
>         static unsigned char f_colors[] = {
>                 TAC_DEFAULT, TAC_RED, TAC_GREEN, TAC_YELLOW, TAC_BLUE,
>                 TAC_PINK, TAC_TURQ, TAC_WHITE, 0, TAC_DEFAULT
>         };
>   --
>   /*
>    * Process escape sequences. Known sequences:
>    *  Esc 7                     Save Cursor Position
>    *  Esc 8                     Restore Cursor Position
>    *  Esc [ Pn ; Pn ; .. m      Set attributes
>    *  Esc [ Pn ; Pn H           Cursor Position
>    *  Esc [ Pn ; Pn f           Cursor Position
>    *  Esc [ Pn A                        Cursor Up
>    *  Esc [ Pn B                        Cursor Down
>    *  Esc [ Pn C                        Cursor Forward
>    *  Esc [ Pn D                        Cursor Backward
>    *  Esc [ Pn G                        Cursor Horizontal Absolute
>    *  Esc [ Pn X                        Erase Characters
>    *  Esc [ Ps J                        Erase in Display
>    *  Esc [ Ps K                        Erase in Line
>    * // FIXME: add all the new ones.
>    *
>    *  Pn is a numeric parameter, a string of zero or more decimal digits.
>    *  Ps is a selective parameter.
>    */
>   static void
>   tty3270_escape_sequence(struct tty3270 *tp, char ch)
>   {
> 
>   
> 
> -- 
>   "Having a smoking section in a restaurant is like having
>           a peeing section in a swimming pool." -- Edward Burr



> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-ncurses


-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]