Re: [dev] [dvtm] ESC sequences in madtty.c

2010-12-07 Thread Ross Mohn
Sorry, I ran into two more issues that I fixed today. New patch is attached. 1. I added support for set origin to relative/absolute (ESC[?6h, ESC[?6l) 2. Recognize set/clear graphmode with ESC(0, ESC(B I also put in a clear screen at the end of the creation process. You probably don't notice the

Re: [dev] [hack] Having dmenu provide hints about current selected entry

2010-12-07 Thread Christophe-Marie Duquesne
This patch includes a small correction I forgot to put in the previous patch. There is no need to specify a timeval to wait for (select should block until some data arrives either on stdin or on the x11 file descriptor, as recommended by the select() man page). diff -r 2b9683c50723 dmenu.c --- a/dm

[dev] [dvtm] ESC sequences in madtty.c

2010-12-07 Thread Ross Mohn
Hi, I'm no terminal expert, and I'm reluctant to add more code to the madtty.c source, but I hope these changes will be considered. They certainly work for me! The existing ESC ] s (CUPSV) and ESC ] u (CUPRS) are for save/restore cursor position. I use at least one program that uses ESC 7 (DECSC

Re: [dev] [hack] Having dmenu provide hints about current selected entry

2010-12-07 Thread Christophe-Marie Duquesne
The following patch does what I proposed. 'seq 1 100 | ./dmenu' just feels as fast as the vanilla dmenu. After each select(), the file descriptors are read until there is no data left on them (and match() is called only once all the data in stdin has been read). Cheers, Christophe-Marie diff -