JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
st.git
11 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.

11 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.

11 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(-)

11 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(-)

11 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(-)

11 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(+)

11 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(-)

11 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.

11 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.

11 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.

11 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.

11 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.

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

11 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(-)

11 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(-)

11 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!

11 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.

11 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.

11 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.

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

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

11 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.

11 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.

11 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.

11 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.

11 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(+)

11 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.

11 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.

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

11 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.

11 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.

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

11 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.

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

11 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.

11 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.

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

11 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.

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

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

11 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(-)

11 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(-)

11 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.

11 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.

11 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.

11 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(-)

11 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(-)

11 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.

11 years agoAdd standout mode.
Christoph Lohmann [Sun, 2 Sep 2012 17:53:50 +0000 (19:53 +0200)]
Add standout mode.

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

11 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.

11 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(-)

11 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(+)

11 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.

11 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.

11 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.

11 years agoAdd OSC, DSC, PM, APC and settitle.
Christoph Lohmann [Wed, 29 Aug 2012 21:14:20 +0000 (23:14 +0200)]
Add OSC, DSC, PM, APC and settitle.

11 years agoAdding setb and setf and a comment about terminfo installation.
Christoph Lohmann [Wed, 29 Aug 2012 19:13:47 +0000 (21:13 +0200)]
Adding setb and setf and a comment about terminfo installation.

11 years agoAdd CHT sequence
Roberto E. Vargas Caballero [Wed, 29 Aug 2012 18:05:25 +0000 (20:05 +0200)]
Add CHT sequence

This sequence performs "Cursor Forward Tabulation <n> tab stops", which
although is not present in vt100 or vt102, xterm accepts it.
---
 st.c |    5 +++++
 1 file changed, 5 insertions(+)

11 years agoApplying the patches of k0ga and changing the LICENSE file in the appropriate
Christoph Lohmann [Wed, 29 Aug 2012 18:01:34 +0000 (20:01 +0200)]
Applying the patches of k0ga and changing the LICENSE file in the appropriate

way.

11 years agoAdd TBC sequence
Roberto E. Vargas Caballero [Wed, 29 Aug 2012 17:59:47 +0000 (19:59 +0200)]
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(-)

11 years agoAdd HTS sequence
Roberto E. Vargas Caballero [Wed, 29 Aug 2012 17:59:43 +0000 (19:59 +0200)]
Add HTS sequence

This sequence adds a new tab stop in the current horizontal position. This
means that tputtab must be look for the next tab stop in the tabs array
instead of using a hard coded value offset. Also, CHT sequence XXX message
is removed because it is not a vt10x sequence (as far as I know it is a
vt50x sequence), and it is not implemented by linux virtual terminal neither
by xterm.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
---
 st.c |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

11 years agoAdd tabs field into Term struct
Roberto E. Vargas Caballero [Wed, 29 Aug 2012 17:59:37 +0000 (19:59 +0200)]
Add tabs field into Term struct

Tabs stop are simulated in st using a fixed size of 8, always, without be
worried about sequences changing the tab stops. A user can put a tab stop in
each horizontal position of the screen, so we need at least one flag for
each column of the screen. In the same way as dirty flags is used for the
rows, it is used a bool dinamic array.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
---
 st.c |   22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

11 years agoapply post-XDBE patch BORDER fix
Brandon Invergo [Fri, 3 Aug 2012 12:46:40 +0000 (14:46 +0200)]
apply post-XDBE patch BORDER fix

11 years agoImplement Xdbe-based double-buffering
Brandon Invergo [Sat, 28 Jul 2012 12:27:26 +0000 (14:27 +0200)]
Implement Xdbe-based double-buffering

12 years agoupdate TODO.
Aurélien Aptel [Mon, 27 Feb 2012 11:48:13 +0000 (12:48 +0100)]
update TODO.

12 years agocleanup. refactored dirt-related function.
Aurélien Aptel [Mon, 27 Feb 2012 11:44:02 +0000 (12:44 +0100)]
cleanup. refactored dirt-related function.

12 years agouse SHELL as default shell.
Aurélien Aptel [Thu, 16 Feb 2012 18:24:46 +0000 (19:24 +0100)]
use SHELL as default shell.

12 years agorevert to "tip" in VERSION.
Aurélien Aptel [Thu, 16 Feb 2012 00:06:45 +0000 (01:06 +0100)]
revert to "tip" in VERSION.

12 years agoAdded tag 0.2.1 for changeset 108926a0fe61
Aurélien Aptel [Thu, 16 Feb 2012 00:05:26 +0000 (01:05 +0100)]
Added tag 0.2.1 for changeset 108926a0fe61

12 years agobump version.
Aurélien Aptel [Thu, 16 Feb 2012 00:05:14 +0000 (01:05 +0100)]
bump version.

12 years agoreplace fwrite by printf.
Aurélien Aptel [Wed, 15 Feb 2012 23:59:26 +0000 (00:59 +0100)]
replace fwrite by printf.

12 years agorewrite csidump().
Aurélien Aptel [Wed, 15 Feb 2012 23:58:16 +0000 (00:58 +0100)]
rewrite csidump().

12 years agoclean and name enum definitions.
Aurélien Aptel [Wed, 15 Feb 2012 23:33:11 +0000 (00:33 +0100)]
clean and name enum definitions.

12 years agofix default color overwriten bug.
Aurélien Aptel [Wed, 15 Feb 2012 23:10:32 +0000 (00:10 +0100)]
fix default color overwriten bug.

12 years agoshow dark cursor when unfocused.
Aurélien Aptel [Wed, 15 Feb 2012 18:33:48 +0000 (19:33 +0100)]
show dark cursor when unfocused.

12 years agodocument possible configuration.
Aurélien Aptel [Wed, 15 Feb 2012 18:11:07 +0000 (19:11 +0100)]
document possible configuration.

12 years agohandle dim/bright colors.
Aurélien Aptel [Wed, 15 Feb 2012 18:10:31 +0000 (19:10 +0100)]
handle dim/bright colors.

12 years agomerge
Aurélien Aptel [Mon, 13 Feb 2012 00:01:41 +0000 (01:01 +0100)]
merge

12 years agosome minor fixes
anselm@garbe.us [Sat, 11 Feb 2012 09:48:18 +0000 (10:48 +0100)]
some minor fixes

12 years agoreduce size of each glyph for faster copy.
Aurélien Aptel [Wed, 8 Feb 2012 15:45:52 +0000 (16:45 +0100)]
reduce size of each glyph for faster copy.

12 years agoAdded tag 0.2 for changeset 3c2f9f2ab5e4
Aurélien Aptel [Tue, 7 Feb 2012 22:53:45 +0000 (23:53 +0100)]
Added tag 0.2 for changeset 3c2f9f2ab5e4

12 years agocosmetic, whitespace, etc.
Aurélien Aptel [Sat, 21 Jan 2012 22:43:03 +0000 (23:43 +0100)]
cosmetic, whitespace, etc.

12 years agofix PRINT/DRAW _TIMEOUT and fix redrawing bug.
Aurélien Aptel [Sat, 21 Jan 2012 22:26:53 +0000 (23:26 +0100)]
fix PRINT/DRAW _TIMEOUT and fix redrawing bug.

12 years agocopy dirty lines to screen, add select() timeout & min time between draw() calls.
Aurélien Aptel [Sat, 21 Jan 2012 22:14:41 +0000 (23:14 +0100)]
copy dirty lines to screen, add select() timeout & min time between draw() calls.

* add a timeout value (SELECT_TIMEOUT) of 20ms in the select() call
* wait at least 20ms (DRAW_TIMEOUT) between draw() calls
* only copy dirty lines from the buffer to the screen

what draw() does:
* clears dirty lines in the buffer
* draws the longest same-attributes string of each
  dirty line to the buffer with multiple xdraws() call
* copies the current dirty line from buffer to the screen with a single
  xcopy() call

this changeset makes st run ~10x faster.

12 years agofix segfault in selection. (thx Martti Kühne)
Aurélien Aptel [Tue, 10 Jan 2012 21:21:03 +0000 (22:21 +0100)]
fix segfault in selection. (thx Martti Kühne)

12 years agomerge.
Aurélien Aptel [Tue, 1 Nov 2011 15:37:16 +0000 (16:37 +0100)]
merge.

12 years agofix selection. (thx Tarmo Heiskanen)
Aurélien Aptel [Tue, 1 Nov 2011 15:33:43 +0000 (16:33 +0100)]
fix selection. (thx Tarmo Heiskanen)

12 years agodrawregion() only copies region on screen.
Aurélien Aptel [Thu, 20 Oct 2011 21:26:58 +0000 (23:26 +0200)]
drawregion() only copies region on screen.

12 years agoadd dirty flag for lines
Aurélien Aptel [Thu, 20 Oct 2011 21:20:59 +0000 (23:20 +0200)]
add dirty flag for lines

12 years agono palette limit (thx Nick)
Aurélien Aptel [Thu, 6 Oct 2011 19:32:34 +0000 (21:32 +0200)]
no palette limit (thx Nick)

12 years agosimplify version format.
Aurélien Aptel [Thu, 22 Sep 2011 08:04:58 +0000 (10:04 +0200)]
simplify version format.

12 years agoselection is removed or scrolled properly. (thx Rafa Garcia Gallego)
Aurélien Aptel [Fri, 16 Sep 2011 16:48:16 +0000 (18:48 +0200)]
selection is removed or scrolled properly. (thx Rafa Garcia Gallego)

12 years agoworking on old repo, merging recent changesets.
Aurélien Aptel [Fri, 16 Sep 2011 16:24:13 +0000 (18:24 +0200)]
working on old repo, merging recent changesets.

12 years agomove xembedatom in XWindow struct, add link to xembed specs.
Aurélien Aptel [Fri, 16 Sep 2011 16:21:48 +0000 (18:21 +0200)]
move xembedatom in XWindow struct, add link to xembed specs.

12 years agotweak focus to support XEMBED client message and remove focus on EnterNotify. (thx...
Aurélien Aptel [Fri, 16 Sep 2011 16:03:44 +0000 (18:03 +0200)]
tweak focus to support XEMBED client message and remove focus on EnterNotify. (thx Adrian)

12 years agoremove dup of default window size.
Aurélien Aptel [Fri, 16 Sep 2011 15:57:56 +0000 (17:57 +0200)]
remove dup of default window size.

12 years agochange "op" cap in terminfo entry to xterm/rxvt value.
Aurélien Aptel [Sun, 14 Aug 2011 15:15:19 +0000 (17:15 +0200)]
change "op" cap in terminfo entry to xterm/rxvt value.

12 years agofix custom key handling.
Aurélien Aptel [Sun, 14 Aug 2011 15:13:59 +0000 (17:13 +0200)]
fix custom key handling.

12 years agofix focus state when embed in another window.
Aurélien Aptel [Thu, 9 Jun 2011 16:25:56 +0000 (18:25 +0200)]
fix focus state when embed in another window.