st.git
12 years agoForgot to remove the xclearborders() definition from the last commit.
Christoph Lohmann [Sat, 6 Oct 2012 11:45:14 +0000 (13:45 +0200)]
Forgot to remove the xclearborders() definition from the last commit.

12 years agoRemoving the xclearborders() hack. St now cleans up the parts of the border,
Christoph Lohmann [Sat, 6 Oct 2012 11:43:01 +0000 (13:43 +0200)]
Removing the xclearborders() hack. St now cleans up the parts of the border,

if something needs to be drawn close to it.

12 years agoThe style inquisition was here. Yes, making it a unified style. The last
Christoph Lohmann [Sat, 6 Oct 2012 07:58:45 +0000 (09:58 +0200)]
The style inquisition was here. Yes, making it a unified style. The last

infidels will be squashed too!

12 years agoAdding the patch of David Dufberg Töttrup to implement WM_DELETE_WINDOW. Thank you!
Christoph Lohmann [Fri, 5 Oct 2012 20:59:08 +0000 (22:59 +0200)]
Adding the patch of David Dufberg Töttrup to implement WM_DELETE_WINDOW. Thank you!

12 years agoFixing the brightening on bold. For the 256 colors and greyscale I assumed a
Christoph Lohmann [Fri, 5 Oct 2012 20:51:08 +0000 (22:51 +0200)]
Fixing the brightening on bold. For the 256 colors and greyscale I assumed a

reasonable solution.

12 years agoTurning on antialias by default really makes it more unreadable. Maybe if once
Christoph Lohmann [Fri, 5 Oct 2012 09:07:55 +0000 (11:07 +0200)]
Turning on antialias by default really makes it more unreadable. Maybe if once

the majority has bigger screens, this can be turned on by default again.
Thanks pancake, for the hint.

12 years agoWhen the drawing behaviour was changed underline was not corrected.
Christoph Lohmann [Fri, 5 Oct 2012 07:38:10 +0000 (09:38 +0200)]
When the drawing behaviour was changed underline was not corrected.

Thanks to Peter A. Shevtsov!

12 years agoThis adds the fontcache dependency to try something out. Additionally the
Christoph Lohmann [Thu, 4 Oct 2012 20:59:45 +0000 (22:59 +0200)]
This adds the fontcache dependency to try something out. Additionally the

invert mode now works as expected. In the config.def.h autohint is set to
false, so the fonts are drawn correctly, without any overlapping.

12 years agoThanks to c00kiemon5ter. Not changing bold to bright colors seems to be the
Christoph Lohmann [Tue, 2 Oct 2012 10:48:55 +0000 (12:48 +0200)]
Thanks to c00kiemon5ter. Not changing bold to bright colors seems to be the

right choice.

12 years agoRemoving the now obsolete definitions from the config.def.h file.
Christoph Lohmann [Sun, 30 Sep 2012 18:23:45 +0000 (20:23 +0200)]
Removing the now obsolete definitions from the config.def.h file.

12 years agoThis changes -f to be the parameter for the font. Now -f is -o.
Christoph Lohmann [Sun, 30 Sep 2012 18:23:10 +0000 (20:23 +0200)]
This changes -f to be the parameter for the font. Now -f is -o.

The parameters were reordered according to the alphabet too.

12 years agoRemove the cruft of the user to have to define the different font styles.
Christoph Lohmann [Sun, 30 Sep 2012 18:10:58 +0000 (20:10 +0200)]
Remove the cruft of the user to have to define the different font styles.

12 years agoWe need all the colors to be available, so die() on some not available.
Christoph Lohmann [Sat, 29 Sep 2012 09:23:34 +0000 (11:23 +0200)]
We need all the colors to be available, so die() on some not available.

This is a new opportunity to see if X11 somewhen handled colors in a strange
way.

12 years agoAll xcolors are not Xft colors and the clearing of the borders has been
Christoph Lohmann [Sat, 29 Sep 2012 09:17:16 +0000 (11:17 +0200)]
All xcolors are not Xft colors and the clearing of the borders has been

optimized. There is a speedup when resizing windows.

12 years agoVt escape sequences allow escape sequences in escape sequences and escape
Christoph Lohmann [Thu, 27 Sep 2012 17:28:44 +0000 (19:28 +0200)]
Vt escape sequences allow escape sequences in escape sequences and escape

sequences, so we have to support escape sequences in escape sequences that
escape sequences in escape sequences – setting a title won't notify you
anymore.

12 years agoAllow control characters inside escape sequences
Roberto E. Vargas Caballero [Wed, 26 Sep 2012 18:55:18 +0000 (20:55 +0200)]
Allow control characters inside escape sequences

Taken from vt100 manual programmer:

Control characters (codes \0 to \37 inclusive) are specifically
excluded from the control sequence syntax, but may be embedded
within a control sequence. Embedded control characters are executed
as soon as they are encountered by the VT100. The processing of the
control sequence then continues with the next character received.
---
 st.c |   68 +++++++++++++++++++++++++++++++++---------------------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

12 years agoIgnore all control characters not handled
Roberto E. Vargas Caballero [Wed, 26 Sep 2012 18:53:46 +0000 (20:53 +0200)]
Ignore all control characters not handled

Taken from vt100 programmer manual:

Control characters have values of \000 - \037, and \177. The control
characters recognized by the VT100 are shown in Table 3-10. All
other control codes cause no action to be taken.

We have to take attention when we are using alternate charset, because in
this cases they are not used as control characters.
---
 st.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

12 years agoSwitching to Liberation Mono as default solely because of line drawing. A next
Christoph Lohmann [Wed, 26 Sep 2012 18:21:59 +0000 (20:21 +0200)]
Switching to Liberation Mono as default solely because of line drawing. A next

patch to fix the font symbols in all fonts should make it easier to choose a
better font.

12 years agoImplementing line drawing right.
Christoph Lohmann [Wed, 26 Sep 2012 18:21:08 +0000 (20:21 +0200)]
Implementing line drawing right.

12 years agoA reset should reset the line drawing too.
Christoph Lohmann [Tue, 25 Sep 2012 19:39:25 +0000 (21:39 +0200)]
A reset should reset the line drawing too.

12 years agoEnabling enacs and adding compatibility to xterm and urxvt for alternative
Christoph Lohmann [Tue, 25 Sep 2012 19:17:43 +0000 (21:17 +0200)]
Enabling enacs and adding compatibility to xterm and urxvt for alternative

charsets.

12 years agoFix bug in tputc writing to io file
Roberto E. Vargas Caballero [Tue, 25 Sep 2012 19:04:35 +0000 (21:04 +0200)]
Fix bug in tputc writing to io file

If -f options is enabled then tputc() writes all the data to a file. Actual
code assumes that all the strings in 'c' parameters have always 1 byte
length, but this is not always true, because due to utf-8 encoding some
characters can have a diferent length. So it is necessary pass string length
to tputc in order it can call to write() correctly.
---
 st.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

12 years agoChanging the default font to DejaVu Sans Mono, which is more appealing and
Christoph Lohmann [Mon, 24 Sep 2012 12:01:59 +0000 (14:01 +0200)]
Changing the default font to DejaVu Sans Mono, which is more appealing and

activating antialiasing.

12 years agoThe xinit() call needs to be behind all the tty init, otherwise all the
Christoph Lohmann [Mon, 24 Sep 2012 09:04:26 +0000 (11:04 +0200)]
The xinit() call needs to be behind all the tty init, otherwise all the

allocated structures are wrong. The xclear() is now done on purpose. Please
keep X11 calls out of the way of pure tty-related calls.

12 years agoAdding a TODO for xft fallback.
Christoph Lohmann [Mon, 24 Sep 2012 08:31:35 +0000 (10:31 +0200)]
Adding a TODO for xft fallback.

12 years agoAdd some documentetion to tsetmode
Roberto E. Vargas Caballero [Mon, 24 Sep 2012 08:29:37 +0000 (10:29 +0200)]
Add some documentetion to tsetmode

The names of the terminal modes supported by vt102 are (taken from the VT220
programmer reference manual):

Table 4-7 ANSI-Standardized Modes
Name  Mnemonic     Parameter (Ps)
Error (ignored)     -         0 (3/0)
Keyboard action     KAM       2 (3/2)
Insert/replace     IRM       4 (3/4)
Send/receive     SRM       12 (3/1 3/2)
Line feed/new line     LNM       20 (3/2 3/0)

Table 4-8 ANSI-Compatible DEC Private Modes
Name  Mnemonic   Parameter (Ps)
Error (ignored)   -     0 (3/0)
Cursor key   DECCKM    1 (3/1)
ANSI/VT52   DECANM    2 (3/2)
Column   DECCOLM   3 (3/3)
Scroll   DECSCLM   4 (3/4)
Screen   DECSCNM   5 (3/5)
Origin   DECOM     6 (3/6)
Auto wrap   DECAWM    7 (3/7)
Auto repeat   DECARM    8 (3/8)
Printer form feed   DECPFF    18 (3/1 3/8)
Printer extent   DECPEX    19 (3/1 3/9)
Text cursor enable   DECTCEM   25 (3/2 3/5)
National replacement character sets DECNRCM 42 (3/4 3/2)

This patch adds a comment for each one of these sequences.
---
 st.c |   26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

12 years agoFix LNM sequence
Roberto E. Vargas Caballero [Mon, 24 Sep 2012 08:28:35 +0000 (10:28 +0200)]
Fix LNM sequence

LNM sequence is a standard ANSI mode, not a DEC private mode.
---
 st.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

12 years agoAdd KAM sequence
Roberto E. Vargas Caballero [Mon, 24 Sep 2012 08:28:05 +0000 (10:28 +0200)]
Add KAM sequence

This sequence lock/unlock the keyboard ignoring all the key pressing events
from X server.
---
 st.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

12 years agoRemove unused parameters in ttyresize
Roberto E. Vargas Caballero [Mon, 24 Sep 2012 08:27:22 +0000 (10:27 +0200)]
Remove unused parameters in ttyresize

---
 st.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

12 years agoClear X window in tsetreset()
Roberto E. Vargas Caballero [Mon, 24 Sep 2012 08:26:50 +0000 (10:26 +0200)]
Clear X window in tsetreset()

tsetreset() is called when it is necessary a full initialization of the
terminal, so it also should clean the full X window and not only the
terminal content. It is necessary change the order of the
initialization in main(), and put xinit before of tnew(), because tnew()
calls to tsetreset(), and  this can cause a call to xreset() with
incorrect values.
---
 st.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

12 years agoMerging xft and current st heads.
Christoph Lohmann [Mon, 24 Sep 2012 08:24:36 +0000 (10:24 +0200)]
Merging xft and current st heads.

12 years agoInitial Xft support for st. More to follow.
Christoph Lohmann [Mon, 24 Sep 2012 08:20:45 +0000 (10:20 +0200)]
Initial Xft support for st. More to follow.

12 years agouse typedef'd unsigned type and regular bool type.
Aurélien Aptel [Wed, 19 Sep 2012 14:03:16 +0000 (16:03 +0200)]
use typedef'd unsigned type and regular bool type.

12 years agoconfig.def.h: typo in comment.
Aurélien Aptel [Tue, 18 Sep 2012 17:13:19 +0000 (19:13 +0200)]
config.def.h: typo in comment.

12 years agoLEGACY: typo.
Aurélien Aptel [Tue, 18 Sep 2012 17:08:03 +0000 (19:08 +0200)]
LEGACY: typo.

12 years agoRedrawing is fixed.
Christoph Lohmann [Mon, 17 Sep 2012 21:14:40 +0000 (23:14 +0200)]
Redrawing is fixed.

12 years agoFixing the redrawing patch of k0ga, so it's using xclear() in redraw() too.
Christoph Lohmann [Mon, 17 Sep 2012 20:44:27 +0000 (22:44 +0200)]
Fixing the redrawing patch of k0ga, so it's using xclear() in redraw() too.

12 years agoClean windows display after resizing
Roberto E. Vargas Caballero [Mon, 17 Sep 2012 20:13:17 +0000 (22:13 +0200)]
Clean windows display after resizing

Some times the size after a resizing is not an exact multiply of a number of
characters, so redrawn the screen using the lines and columns of the neww
size can cause that some old graphics keep in the screen. Solution is clean
all the windows with the background color.
---
 st.c |    3 +++
 1 file changed, 3 insertions(+)

12 years agoCopy non set positions as spaces
Roberto E. Vargas Caballero [Mon, 17 Sep 2012 20:13:09 +0000 (22:13 +0200)]
Copy non set positions as spaces

st selection don't insert in the selection position whose value is not
set. This is correct for the positions in the end of the line, but cause
some problems in the beginning. For example echo -e 'a\tb' will print in the
screen:

a b

but after selecting and copying in some place you get:

ab

because positions from 1 to 7 don't have any value. This patch deals all
positions without value as blank (even at the end of the line).
---
 st.c |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

12 years agoAdd newline in error messages
Roberto E. Vargas Caballero [Mon, 17 Sep 2012 20:11:28 +0000 (22:11 +0200)]
Add newline in error messages

---
 st.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

12 years agoAdd xcalloc wrapper
Roberto E. Vargas Caballero [Mon, 17 Sep 2012 20:11:20 +0000 (22:11 +0200)]
Add xcalloc wrapper

malloc and realloc are called through xmalloc and xrealloc, so calloc should
be called through xcalloc.
---
 st.c |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

12 years agoApplying a shortening proposal for the run loop of k0ga.
Christoph Lohmann [Sun, 16 Sep 2012 18:43:51 +0000 (20:43 +0200)]
Applying a shortening proposal for the run loop of k0ga.

12 years agoRemove call to draw in resize
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 12:02:35 +0000 (14:02 +0200)]
Remove call to draw in resize

In previous commits draw was removed from all the X events, but I forgot do
it in resize.
---
 st.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

12 years agoAdding some more fields to the manpage, like authors, license etc.
Christoph Lohmann [Sun, 16 Sep 2012 11:59:10 +0000 (13:59 +0200)]
Adding some more fields to the manpage, like authors, license etc.

12 years agoRemove some solved issues and add some new.
Christoph Lohmann [Sun, 16 Sep 2012 11:50:07 +0000 (13:50 +0200)]
Remove some solved issues and add some new.

12 years agoPreliminary solution to the stuttering problem.
Christoph Lohmann [Sun, 16 Sep 2012 11:22:23 +0000 (13:22 +0200)]
Preliminary solution to the stuttering problem.

12 years agoFix selection bug
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 08:49:12 +0000 (10:49 +0200)]
Fix selection bug

After the commit named "Remove timeout in the main loop", selection is not
working in the proper way. After selecting something, press mouse button in
a line outside of selection causes an incorrect highlight. This patch fix
the problem forcing a draw after the press event, but this is only a fast
hack. Real solution means rewriting selection code.
---
 st.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

12 years agoRender only once in each main loop iteration
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 08:48:38 +0000 (10:48 +0200)]
Render only once in each main loop iteration

draw() runs over all lines of the screen and renders only the dirty lines,
this avoids render lines which are not modified since last draw() call. In
this moment the main loop is something like:

     - Wait something to read from file descriptors
     - Read from pseudo tty
     - Call draw() for rending
     - Read X events

This cause the problem that all the X events that have to update the screen
have to call draw() (because draw() is called before of X events handling),
so you can have multiples renderings in only one iteration, that will waste
a lot of resources.

This patch change the main loop to:

     - Wait something to read from file descriptors
     - Read from pseudo tty
     - Read X events
     - Call draw() for rending

So X events don't have to worry about rendering, because draw() is called
after them.

The only place where draw is called outside of the main loop is in redraw(),
but it is necessary for getting a good tput flash.
---
 st.c |   29 ++++++-----------------------
 1 file changed, 6 insertions(+), 23 deletions(-)

12 years agoRemove timeout in the main loop
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 08:47:21 +0000 (10:47 +0200)]
Remove timeout in the main loop

The main loop waits until there is some data to read in file descriptors of
the X server or the pseudo tty. But it uses a timeout in select(), which
causes that st awake each 20 ms, even it doesn't have something to do. This
patch removes this problem removing the timeout, which is not needed.
---
 TODO |    1 -
 st.c |   27 +++------------------------
 2 files changed, 3 insertions(+), 25 deletions(-)

12 years agoCall XSync in redraw
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 08:46:08 +0000 (10:46 +0200)]
Call XSync in redraw

It is necessary call to XSync if you want a good tput flash, because in
other way you can not be sure that white screen will be shown.
---
 st.c |    1 +
 1 file changed, 1 insertion(+)

12 years agoCall XdbeQueryExtension before of calling any Xdbe function
Roberto E. Vargas Caballero [Sun, 16 Sep 2012 08:45:36 +0000 (10:45 +0200)]
Call XdbeQueryExtension before of calling any Xdbe function

XdbeQueryExtension() tells to the caller if the Xdbe extension is present in
the X server, so it should be called for sanity. But like is said in
XdbeQueryExtension(3):

No other Xdbe functions may be called before this function.  If a
client violates this rule, the effects of all subsequent Xdbe calls
that it makes are undefined.

it is mandatory call this function.
---
 st.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

12 years agoImplementing italic-bold. This will require an increase of the avgWdth.
Christoph Lohmann [Fri, 14 Sep 2012 17:46:07 +0000 (19:46 +0200)]
Implementing italic-bold. This will require an increase of the avgWdth.

12 years agoIgnore NUL character as a padding character. Telnet may use this. Patch of
Christoph Lohmann [Thu, 13 Sep 2012 21:21:40 +0000 (23:21 +0200)]
Ignore NUL character as a padding character. Telnet may use this. Patch of

Roberto Vargas.

12 years agoImporting the patch of Roberto Vargas to inherit signal handlers.
Christoph Lohmann [Thu, 13 Sep 2012 21:19:57 +0000 (23:19 +0200)]
Importing the patch of Roberto Vargas to inherit signal handlers.

12 years agoReset window title on terminal reset too.
Christoph Lohmann [Thu, 13 Sep 2012 05:16:38 +0000 (07:16 +0200)]
Reset window title on terminal reset too.

12 years agoAdding a statemant on legacy support.
Christoph Lohmann [Thu, 13 Sep 2012 05:04:59 +0000 (07:04 +0200)]
Adding a statemant on legacy support.

12 years agoAdding another bold off sequence.
Christoph Lohmann [Thu, 13 Sep 2012 05:04:34 +0000 (07:04 +0200)]
Adding another bold off sequence.

12 years agoRemove buffering to fileio instead of calling fflush
Roberto E. Vargas Caballero [Wed, 12 Sep 2012 19:51:55 +0000 (21:51 +0200)]
Remove buffering to fileio instead of calling fflush

By default text files are line buffered, and this means that -f option will
not write the line until a \n is printed. This is not very useful for
debugging, so a call to fflush was added. This patch substitute this call
(which will be done by each character painted) by the full remove of the
buffering in the file.
---
 st.c |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

12 years agoAdd xmalloc and xrealloc wrappers
Roberto E. Vargas Caballero [Wed, 12 Sep 2012 19:25:35 +0000 (21:25 +0200)]
Add xmalloc and xrealloc wrappers

If malloc  or realloc fail they return NULL. Theorically this condition
should be tested in the code, but it's a strange condition today (basically
if this is hapenning thenyou have a big problem), and even Linux never returns
NULL in the default configuration (only if the process don't have room in
the space address, something a bit impossible in the case of st). But stis
enough small for being executed in low resources computers where this can be
a real problem. So the easy way is creating a wrappers function for them and
call to die in case of error.
---
 st.c |   44 +++++++++++++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 13 deletions(-)

12 years agoMake nyancat(1) work. Important release feature!
Christoph Lohmann [Wed, 12 Sep 2012 11:20:10 +0000 (13:20 +0200)]
Make nyancat(1) work. Important release feature!

12 years agoAdd preliminary blink stubs. Real implementation is still missing.
Christoph Lohmann [Wed, 12 Sep 2012 11:08:26 +0000 (13:08 +0200)]
Add preliminary blink stubs. Real implementation is still missing.

12 years agoAdd another obscure way to set a window title.
Christoph Lohmann [Wed, 12 Sep 2012 11:00:39 +0000 (13:00 +0200)]
Add another obscure way to set a window title.

12 years agoFixing the too small window in non-tiling window managers.
Christoph Lohmann [Mon, 10 Sep 2012 11:39:41 +0000 (13:39 +0200)]
Fixing the too small window in non-tiling window managers.

12 years agoMaking the selection work again.
Christoph Lohmann [Thu, 6 Sep 2012 06:02:56 +0000 (08:02 +0200)]
Making the selection work again.

12 years agoAllow simpler stdout -f handling.
Christoph Lohmann [Wed, 5 Sep 2012 22:00:50 +0000 (00:00 +0200)]
Allow simpler stdout -f handling.

12 years agoAdding instantenous debug output and fixing italic with a reset.
Christoph Lohmann [Wed, 5 Sep 2012 21:38:57 +0000 (23:38 +0200)]
Adding instantenous debug output and fixing italic with a reset.

12 years agoAdding the removal of the timeouts to the TODO.
Christoph Lohmann [Wed, 5 Sep 2012 21:06:59 +0000 (23:06 +0200)]
Adding the removal of the timeouts to the TODO.

12 years agoRemoving masks for unhandled enter and leaving events.
Christoph Lohmann [Wed, 5 Sep 2012 20:39:09 +0000 (22:39 +0200)]
Removing masks for unhandled enter and leaving events.

12 years agoIf the selection is cleared, draw() and do it on button press too.
Christoph Lohmann [Wed, 5 Sep 2012 20:17:42 +0000 (22:17 +0200)]
If the selection is cleared, draw() and do it on button press too.

12 years agoUnhighlight selection when selection is owner by other window
Roberto E. Vargas Caballero [Wed, 5 Sep 2012 19:55:45 +0000 (21:55 +0200)]
Unhighlight selection when selection is owner by other window

st marks the active selection using reverse colors in the box selection, but
once that another window becomes owner of the selection, it is very
confusing that st keeps highlight the old selection. Usually terminal
emulators remove the highlight when it is not valid anymore.

X sends a SelectionClear event in this situation, so we only have to add a
callback which unhighlight the selectin box.
---
 st.c |    9 +++++++++
 1 file changed, 9 insertions(+)

12 years agoForcing the parameter limit to xcopy() and selpaste(). Thanks to Rob Pilling.
Christoph Lohmann [Wed, 5 Sep 2012 19:54:52 +0000 (21:54 +0200)]
Forcing the parameter limit to xcopy() and selpaste(). Thanks to Rob Pilling.

12 years agoRemoving unneeded arguments to copy(). Thanks to Andrew Hills.
Christoph Lohmann [Wed, 5 Sep 2012 19:52:01 +0000 (21:52 +0200)]
Removing unneeded arguments to copy(). Thanks to Andrew Hills.

12 years agoImplement italic font support.
Christoph Lohmann [Wed, 5 Sep 2012 19:48:26 +0000 (21:48 +0200)]
Implement italic font support.

12 years agoAdd to TODO to make function keys work.
Christoph Lohmann [Tue, 4 Sep 2012 23:32:42 +0000 (01:32 +0200)]
Add to TODO to make function keys work.

12 years agoEnable keypad set and unset commands.
Christoph Lohmann [Tue, 4 Sep 2012 23:25:37 +0000 (01:25 +0200)]
Enable keypad set and unset commands.

12 years agoDisable BCE again.
Christoph Lohmann [Tue, 4 Sep 2012 22:58:17 +0000 (00:58 +0200)]
Disable BCE again.

12 years agoRemoving the resize issue from the TODO file.
Christoph Lohmann [Tue, 4 Sep 2012 22:09:13 +0000 (00:09 +0200)]
Removing the resize issue from the TODO file.

12 years agoFixing the resizing behaviour.
Christoph Lohmann [Tue, 4 Sep 2012 22:08:13 +0000 (00:08 +0200)]
Fixing the resizing behaviour.

12 years agoForgot one line. It's late.
Christoph Lohmann [Tue, 4 Sep 2012 20:51:29 +0000 (22:51 +0200)]
Forgot one line. It's late.

12 years agoCleaning up the fixed window size and the resizing of clients.
Christoph Lohmann [Tue, 4 Sep 2012 20:44:33 +0000 (22:44 +0200)]
Cleaning up the fixed window size and the resizing of clients.

12 years agoAnother thing for TODO – resize.
Christoph Lohmann [Tue, 4 Sep 2012 20:06:54 +0000 (22:06 +0200)]
Another thing for TODO – resize.

12 years agoUpdating the TODO and enabling BCE.
Christoph Lohmann [Tue, 4 Sep 2012 20:05:24 +0000 (22:05 +0200)]
Updating the TODO and enabling BCE.

12 years agoCUP == HVP; CHA == HPA;
Christoph Lohmann [Tue, 4 Sep 2012 19:56:55 +0000 (21:56 +0200)]
CUP == HVP; CHA == HPA;

12 years agoUnifying the old style.
Christoph Lohmann [Tue, 4 Sep 2012 18:34:43 +0000 (20:34 +0200)]
Unifying the old style.

12 years agoCheck alternative screen before drawing box selection
Roberto E. Vargas Caballero [Tue, 4 Sep 2012 18:33:01 +0000 (20:33 +0200)]
Check alternative screen before drawing box selection

Some programs use the alternative screen (vi, less, ...), whose
content is different of the main screen. If you select text in one of
the screen, you don't wait the box selection is painted in the other
screen, so it is necessary check if the selection was done in the same
screen we are going to paint. Before to this commit, you could do
something like:

$ LESS="" ls | less
(select some code)
q

and selection box remains drawing in the main screen, but the content
of selection keeps text of the alternate screen.
---
 st.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

12 years agoAdd newline to stderr message
Roberto E. Vargas Caballero [Tue, 4 Sep 2012 18:31:21 +0000 (20:31 +0200)]
Add newline to stderr message

---
 st.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

12 years agoFixing the border pixel when there is a negative position.
Christoph Lohmann [Mon, 3 Sep 2012 21:09:34 +0000 (23:09 +0200)]
Fixing the border pixel when there is a negative position.

12 years agoAdd -g geometry to st and the manpage.
Christoph Lohmann [Mon, 3 Sep 2012 21:02:29 +0000 (23:02 +0200)]
Add -g geometry to st and the manpage.

12 years agoFixing a type in in2 in the st.info.
Christoph Lohmann [Mon, 3 Sep 2012 19:54:40 +0000 (21:54 +0200)]
Fixing a type in in2 in the st.info.

12 years agoForce redisplay of all lines in DECSCNM
Roberto E. Vargas Caballero [Mon, 3 Sep 2012 19:52:34 +0000 (21:52 +0200)]
Force redisplay of all lines in DECSCNM

When it is called DECSCNM all lines become dirty, because it is necessary
redraw all lines for getting the new colors. It is easy see the problem
running 'echo ^[[?5h'.

In order to get a correct flash when running tput flash is necessary wait
after DECSCNM, until the changes are displayed, because in other case the
switch between reverse on/reverse off will be too much fast and nothing will
happen.
---
 st.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

12 years agoAdd write I/O to file
Roberto E. Vargas Caballero [Mon, 3 Sep 2012 19:52:21 +0000 (21:52 +0200)]
Add write I/O to file

This is a theorical feature listed in http://st.suckless.org/goals. All the
input/output of the terminal will be written to a file, which can be very
useful for debugging, and also allow interconnect st to other process
through named pipes.
---
 st.1 |    6 ++++++
 st.c |   14 +++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

12 years agoPatch from Roberto Vargas. »Add initialization strings in terminfo«
Christoph Lohmann [Mon, 3 Sep 2012 19:50:22 +0000 (21:50 +0200)]
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 agoAdd standout mode.
Christoph Lohmann [Sun, 2 Sep 2012 17:53:50 +0000 (19:53 +0200)]
Add standout mode.

12 years agoCleaning up lonely tabs.
Christoph Lohmann [Sun, 2 Sep 2012 17:43:29 +0000 (19:43 +0200)]
Cleaning up lonely tabs.

12 years agoMake it more obvious where the wrong attribute is used.
Christoph Lohmann [Sun, 2 Sep 2012 17:42:00 +0000 (19:42 +0200)]
Make it more obvious where the wrong attribute is used.

12 years agoEnable multiple arguments in SM and RM
Roberto E. Vargas Caballero [Sun, 2 Sep 2012 17:09:35 +0000 (19:09 +0200)]
Enable multiple arguments in SM and RM

SM and RM can receive multiple parameters, but the code only was accepting
only one. This patch join the code of set and reset modes (SM and RM) in a
common function and uses a loop which deals with all the arguments of the
sequence. This patch improves xterm and vt100 compability.
---
 st.c |  180 ++++++++++++++++++++++++++++--------------------------------------
 1 file changed, 76 insertions(+), 104 deletions(-)

12 years agoAdd vpa terminfo capability
Roberto E. Vargas Caballero [Sun, 2 Sep 2012 17:08:52 +0000 (19:08 +0200)]
Add vpa terminfo capability

---
 st.info |    2 ++
 1 file changed, 2 insertions(+)

12 years agoSilencing the compiler but keeping strparse.
Christoph Lohmann [Thu, 30 Aug 2012 19:19:53 +0000 (21:19 +0200)]
Silencing the compiler but keeping strparse.

This will really be needed when there is a full 256 color support.

12 years agoApplying the CBT patch of Roberto Vargas. Thanks.
Christoph Lohmann [Thu, 30 Aug 2012 19:17:54 +0000 (21:17 +0200)]
Applying the CBT patch of Roberto Vargas. Thanks.

12 years agoNever trust terminfo fata morganas. And adding other xterm compatibility.
Christoph Lohmann [Thu, 30 Aug 2012 05:38:47 +0000 (07:38 +0200)]
Never trust terminfo fata morganas. And adding other xterm compatibility.