bug-ncurses
[Top][All Lists]
Advanced

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

Terminfo entries for s390 237x terminal lines


From: Dr. Werner Fink
Subject: Terminfo entries for s390 237x terminal lines
Date: Tue, 4 Feb 2014 12:38:05 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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?

    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

Attachment: pgpaAFalfIEc9.pgp
Description: PGP signature


reply via email to

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