44 Commits (1e09726518b84091e80dfaf96632c122f6f446a6)

Author SHA1 Message Date
Christoph Lohmann 1e09726518 Enable blinking in st. 12 years ago
Christoph Lohmann 7ea6863208 Yes, rs2 != is2. 12 years ago
Christoph Lohmann 8037dac847 There is no 8bit by default and reset 8bit too. 12 years ago
Christoph Lohmann 2bd6afd1c9 Implementing 8 bit mode for meta. 12 years ago
Christoph Lohmann b78c5085f7 Implementing Back Color Erase (BCE). 12 years ago
Christoph Lohmann f741df9cda Standout is now reverse. This makes bsd-games work in st. 12 years ago
Roberto E. Vargas Caballero d5994b43ca Add support for End key
- Shift + End : Delete until end of line.
    - Control + End : Delete until end of screen.

When  the End  key is  pressed  without any  modifier is  not generated  the
correct sequence for it  (going to the end of the  screen), because the size
of the  terminal is not known,  so it is  not possible write a  sequence for
this purpouse.
---
 config.def.h |   10 ++++++++--
 st.info      |    2 ++
 2 files changed, 10 insertions(+), 2 deletions(-)
12 years ago
Roberto E. Vargas Caballero 7c34ff1703 Add support for Supr key
Del : Delete character under cursor.
    Shift + Del : Delete the line under cursor.
    Ctrl + Del: Delete the full screen.
---
 config.def.h |   16 ++++++++++++----
 st.info      |    2 ++
 2 files changed, 14 insertions(+), 4 deletions(-)
12 years ago
Roberto E. Vargas Caballero 3c99be68e8 Add support for insert key
Insert key stands for a key which allows enter or leaves insert mode, so let
it generates the correct sequence to change between these modes:

   - Insert: Enter in insert mode.
   - Shift + Insert: Leave insert mode (replace mode).
   - Control + Insert: Insert a blank line.

Like Shift + Insert also paste text, if a user want this feature be full
functional he has to modify such shortcut.
---
 config.def.h |   16 ++++++++++++----
 st.info      |    3 +++
 2 files changed, 15 insertions(+), 4 deletions(-)
12 years ago
Roberto E. Vargas Caballero e7904128c6 Fix value of ka1 terminfo capability
ka1 stands for upper left of keypad, so the correct value is the one
generated by Home in application keypad mode.
---
 st.info |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
12 years ago
Christoph Lohmann 801ea034b6 Import the patch of Eckehard Berns to add insert mode. Thanks! 12 years ago
Roberto E. Vargas Caballero 620e3bb39e Add missed key definitions
This patch adds the keys for the keypad (in both modes, application mode or
ansi mode) and function keys. It uses the same convention than xterm and
instead of using the XK_Fxx values it generates them using F1-F12 and
modifiers. For example:

   F1 -> ^[OP
   F1 + Shift = F13 -> ^[[1;2P
   F1 + Control = F25 -> ^[[1;5P
   F1 + Mod2 = F37 -> ^[[1;6P
   F1 + Mod1 = F49 -> ^[[1;3P
   F1 + Mod3 = F61 -> ^[[1;4P

It is also important notice than the terminfo capability kIC (shifted insert
key) only can be generated using the keypad keyboard, because the shorcut
for selection paste is using the same combination.

After this path the number of elements in the Key array becomes high, and
maybe a sequencial search is not enough efficient now.
---
 TODO         |    6 +---
 config.def.h |  102 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 st.info      |   70 ++++++++++++++++++++++++++++++++++++++--
 3 files changed, 169 insertions(+), 9 deletions(-)
12 years ago
Roberto E. Vargas Caballero 44597b359e Add control and meta combinations for arrow keys
Since there isn't any terminfo capability for control and meta modifiers for
arrows keys it is necessary use the same that almost terminal emulators use,
because there are a lot of programs which have these codes hardcoded.

This cause also that shift combinations are also changed, but in this case
this is not a problem since there are terminfo capabilities for them. After
this patch shift-up and shift-down continue not working in emacs with
TERM=st, but they work with TERM=xterm, so it is possible some other changes
are necessary in the terminfo entry.
---
 config.def.h |   16 ++++++++++++----
 st.info      |    8 ++++----
 2 files changed, 16 insertions(+), 8 deletions(-)
12 years ago
Roberto E. Vargas Caballero 3b16695f4e Fix arrow keys terminfo capabilities
Usually the arrow keys generate the ANSI sequence which terminal will
understand like a movement, so it is not necessary any dealing for them, the
program can not know if the sequence is generate for a echo key or directly
from the program. If you need really know if the key was pressed then you
need activate the keypad mode where the keys will generate a special code
for each keypad key.

The terminfo capabilities kcub1, kcud1, kcuf1 and kcuu1 are used for this
keypad code, not for the sequence generate in the ansi mode.
---
 st.info |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
12 years ago
Roberto E. Vargas Caballero 69ee3ba3a7 Fix keypad mode and cursor mode
Keypad mode is used for detecting when keys in the auxiliary keypad are
pressed, while cursor mode is used for detecting when a cursor is pressed,
but they are different modes.

St was mixing both modes and DECPAM and DECPNM modified the cursor mode, and
this was incorrect.
---
 st.c    |    5 +++--
 st.info |    4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)
12 years ago
Christoph Lohmann 980c5956ed Enabling enacs and adding compatibility to xterm and urxvt for alternative
charsets.
12 years ago
Christoph Lohmann 462a966ee2 Implement italic font support. 12 years ago
Christoph Lohmann a61b9ea82e Enable keypad set and unset commands. 12 years ago
Christoph Lohmann da4a77edbe Disable BCE again. 12 years ago
Christoph Lohmann 052a617828 Updating the TODO and enabling BCE. 12 years ago
Christoph Lohmann 466decd535 Fixing a type in in2 in the st.info. 12 years ago
Christoph Lohmann cfefa054e8 Patch from Roberto Vargas. »Add initialization strings in terminfo«
Taken from the description:

When tput init is executed the list of task performed are (taken from
terminfo(5)):

              run the program
                     iprog

              output is1 is2

              set the margins using
                     mgc, smgl and smgr

              set tabs using
                     tbc and hts

              print the file
                     if

              and finally
                     output is3.

When reset is executed, a more stronger initialization process is performed,
so the terminal can return from an unknown state. rs1, rs2 and rs3 are used
in this case instead of
using is1, is2 and is3.

This patch makes is2 = rs2, resets insert mode and set normal keypad
mode. For rs1 it performs a full initilization using ^[c.
12 years ago
Christoph Lohmann b11d85c9be Add standout mode. 12 years ago
Roberto E. Vargas Caballero 4cdcc39539 Add vpa terminfo capability
---
 st.info |    2 ++
 1 file changed, 2 insertions(+)
12 years ago
Christoph Lohmann ff040e9894 Adding setb and setf and a comment about terminfo installation. 12 years ago
Roberto E. Vargas Caballero c084c06b40 Add TBC sequence
This sequence clears tab stops in the terminal. If the argument is not present
or is zero, then removes the tab stop of the current horizontal position. If
the argument is 3 then removes all the tab stops of the terminal. It was
necessary modify the terminfo entry tbc, because it has \E[2g instead of the
correct \E[3g.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
---
 st.c    |   12 ++++++++++++
 st.info |    2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)
12 years ago
Aurélien Aptel f78b793d91 change "op" cap in terminfo entry to xterm/rxvt value. 13 years ago
Aurélien Aptel 189a81caa1 add altscreen escseq alias & caps to terminfo entry. (thx Bert Münnich) 14 years ago
Aurélien Aptel d59f92d6f1 reverse video mode. (thx Bert Münnich) 14 years ago
Aurélien Aptel b2db58c2a0 add status bar (window title) to terminfo. (thx Rafa Gallego) 14 years ago
Aurélien Aptel 0107293a44 add mouse report escape to terminfo entry. 14 years ago
Aurélien Aptel 9d5ea14b9d selection clicks, shift+arrow keys, fast(er) redraw, key mask in config.h (thx Magnus Leuthner) 14 years ago
Aurélien Aptel 4d649c2403 fix insert key, terminfo and changed TERM back to st. (thx Ondrej Martinek) 14 years ago
Aurélien Aptel e8b18dd97b update terminfo entry. 14 years ago
Aurélien Aptel fd1149866f add new line glitch to terminfo entry. 14 years ago
Aurélien Aptel 273d4ba938 cleaning st.info. added comment in st.c for DECSCNM. 14 years ago
Aurélien Aptel c43526153f cleaning st.info. fixed cvvis. 14 years ago
Aurélien Aptel 7d325a3797 fixed start/end sequence of gfx. 14 years ago
Aurélien Aptel 42344b7154 started to go through st.info and fix things. 14 years ago
Aurélien Aptel a79bc96c94 capabilities sorted by capname in st.info. copy acsc from xterm. 14 years ago
Aurélien Aptel a7922bd1d9 added F1-12 key, fixed DCH and ICH. 14 years ago
Aurélien Aptel ce3f4fc647 fixed backspace problem, updated terminfo entry and moved TNAME in config.h. 14 years ago
Anselm R Garbe 10e49a0505 applied Devin J Pohly's st color info patches, thanks Devin! 14 years ago
Anselm R Garbe d58dd3b8bc backport of local changes 16 years ago