[dev] [PATCH] Add tab stop escape sequences

2012-08-15 Thread Roberto E. Vargas Caballero
adding non necessary stuff (I wrote the patch for this sequence also, so if you want it, ask me for it). It is not implemented by linux virtual terminal neither by xterm. Roberto. From 057c24bb41e918224c1dc3d841015180ab56a7cb Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com

Re: [dev] [st] new features

2012-08-30 Thread Roberto E. Vargas Caballero
. Sincerely, Roberto E. Vargas. From 75f814852c532f64d7515496d114fec9ef62bd88 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 30 Aug 2012 19:30:16 +0200 Subject: [PATCH] Add CBT sequence This sequence performs Cursor Backward Tabulation n tab stops. This patch

[dev] RM and SM sequences in st

2012-09-02 Thread Roberto E. Vargas Caballero
Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 30 Aug 2012 21:37:17 +0200 Subject: [PATCH] Add vpa terminfo capability --- st.info |2 ++ 1 file changed, 2 insertions(+) diff --git a/st.info b/st.info index 08630d3..902c05a 100644 --- a/st.info +++ b

[dev] New patches for st

2012-09-03 Thread Roberto E. Vargas Caballero
of the window in DECSCNM (reverse mode). Best regards, From 36550dccb6776a67d25b8af3cbfa87407fb5364b Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Mon, 3 Sep 2012 18:50:52 +0200 Subject: [PATCH] Add initialization strings in terminfo When tput init is executed

[dev] [st] New patches

2012-09-04 Thread Roberto E. Vargas Caballero
Hello, Two new patches for st: 0001-Add-newline-to-stderr-message.patch - Fix a typo error in previous patches 0001-Check-alternative-screen-before-drawing-box-selectio.patch - Don't paint selection box in the wrong screen. Best regards,

Re: [dev] [st] New patches

2012-09-04 Thread Roberto E. Vargas Caballero
Sorry, but I forgot the patches ... On Tue, Sep 04, 2012 at 07:34:29PM +0200, Roberto E. Vargas Caballero wrote: Hello, Two new patches for st: 0001-Add-newline-to-stderr-message.patch - Fix a typo error in previous patches 0001-Check-alternative-screen-before-drawing-box

[dev] [st] Removing highlight when selection is owner by another process

2012-09-05 Thread Roberto E. Vargas Caballero
Hello, When the selection is woner by another window we sholud remove the highlight, because in other case it creates some confusion to the user. Best regards. From 6c7267744f8a1effeda813d5c0105247e46b19a5 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date

[dev] [st] New patches

2012-09-12 Thread Roberto E. Vargas Caballero
From 39992c36c5306d8907365c8e62ea070982676afc Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Fri, 7 Sep 2012 12:18:26 +0200 Subject: [PATCH] Add xmalloc and xrealloc wrappers If malloc or realloc fail they return NULL. Theorically this condition should be tested

Re: [dev] [st] New patches

2012-09-12 Thread Roberto E. Vargas Caballero
Hi, Don't try apply theses patches, they introduce a big failure. I am debugging them now (again ...). Best regards,

Re: [dev] [st] New patches

2012-09-12 Thread Roberto E. Vargas Caballero
Already fixed the problem, Hi, Don't try apply theses patches, they introduce a big failure. I am debugging them now (again ...). Best regards, From 39992c36c5306d8907365c8e62ea070982676afc Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Fri, 7 Sep

Re: [dev] [st] New patches

2012-09-12 Thread Roberto E. Vargas Caballero
5fada178da8db9d73170d30bb74106c34e552ae6 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Fri, 7 Sep 2012 12:18:26 +0200 Subject: [PATCH] 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

[dev] [st] [PATCH 1/3] Add NUL character dealing

2012-09-13 Thread Roberto E. Vargas Caballero
NUL character is usually used as padding (basically for timming purpouses), and it should be ignorted. Some old telnet servers send it together each character. It is also used in some terminfo entries (for example in xterm terminfo entry). --- st.c |2 ++ 1 file changed, 2 insertions(+)

[dev] [st] [PATCH 2/3] Restore default signal behaviour

2012-09-13 Thread Roberto E. Vargas Caballero
Signal handlers are inherited from parent process, so we can not be sure which it is the handler our shell process has. This can cause some problems with some window managers (for example with some wmii versions). --- st.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/st.c b/st.c

[dev] [st] [PATCH 3/3] Move geometry initialization to xinit()

2012-09-13 Thread Roberto E. Vargas Caballero
xinit() is the function which performs all the X Windows initilization, so it can be desired doing the geometry parsing into that function, and let the argv loop of main as simple like other parameter cases. --- st.c | 53 +++-- 1 file changed, 27

[dev] [st] Removing timeouts in main loop

2012-09-16 Thread Roberto E. Vargas Caballero
This serie of patches try fix the problem of the timeout in main loop, which causes st wakeup each 20 ms even thare is noting to do. Please send comments and suggestion. Best regards. From 48aac423ea93820f8a406da3f4e53c8ce4bcb2a6 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k

Re: [dev] [st] New patches

2012-09-16 Thread Roberto E. Vargas Caballero
On Sun, Sep 16, 2012 at 12:33:34PM +0200, Aurélien Aptel wrote: I'm not exactly sure what this feature will be used for. If you want to script something around a program expecting to run in a term there are already better tools for that like expect [1]. I'm not the one who added this goal.

Re: [dev] [st] Removing timeouts in main loop

2012-09-16 Thread Roberto E. Vargas Caballero
The timeout problem was introduced to speed up the rendering when a lot of text is printed. The logic is basically to not redraw on every read when the throughput is high: I tried do the same thing putting the draw at the end of the loop, so if you have a high throughput you will read more

Re: [dev] [st] Removing timeouts in main loop

2012-09-16 Thread Roberto E. Vargas Caballero
Maybe a way to improve my patches is testing is some data can be read from the file descriptors and in this case continue the loop. something like: if(i++ 4) { struct timeval tv = {0}; FD_ZERO(rfd); FD_SET(cmdfd, rfd);

Re: [dev] [st] New patches

2012-09-16 Thread Roberto E. Vargas Caballero
If the only use is to debug it shouldn't be exposed to users and it's I only implemented a goal of the project (I don't know who insert that goal to) that was very useful for me. doesn't need to be fast. Besides there's already a dump() function you can modify/use. There is also this great

[dev] [st] small fix after draw() changes

2012-09-16 Thread Roberto E. Vargas Caballero
I forgot this small change. From dda44edaafd907e96080db2257842d0a796f8d19 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Sun, 16 Sep 2012 13:50:13 +0200 Subject: [PATCH] Remove call to draw in resize In previous commits draw was removed from all the X events

Re: [dev] [st] New patches

2012-09-16 Thread Roberto E. Vargas Caballero
The ???f switch allows easy recording of st sessions and so is useful to the users. Thinking a bit about it, it is true that you can get the session using 'script -f', and it is not necessary insert this feature inside of st.

Re: [dev] [st] New patches

2012-09-16 Thread Roberto E. Vargas Caballero
As said on IRC: I really like the convenience of st -f - | cat -v Doing it manually over a fifo is tiresome when I want to do fast debug??? ging. Well, you can use a named pipe and script -f, cat -v. But I think this is too much complex, and the cost of -f option is minimum and don't

Re: [dev] [st] fonts and diacriticals

2012-09-17 Thread Roberto E. Vargas Caballero
I use also the tip and I can use diacritics (I usually have to write a lot of them in spanish). The font I use is -*-terminus-medium-r-*-*-*-160-72-72-*-80-*-*. Could you use the -f option and sent the session to us?.

[dev] [st] Patches

2012-09-17 Thread Roberto E. Vargas Caballero
Some new patches for st. From 17025c9ab88bb8560bac3896c2384ad060c6e8d9 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Mon, 17 Sep 2012 19:03:35 +0200 Subject: Add xcalloc wrapper malloc and realloc are called through xmalloc and xrealloc, so calloc should

Re: [dev] [st] fonts and diacriticals

2012-09-17 Thread Roberto E. Vargas Caballero
TERM inside st = st-256color Can you send the output of 'infocmp st-256color'? Here's the st -f output: http://sprunge.us/IfXW Uhmmm, but in this file there isn't any diacritic :S. I need some of them in order to try see where can be the problem.

Re: [dev] [st] fonts and diacriticals

2012-09-17 Thread Roberto E. Vargas Caballero
On Mon, Sep 17, 2012 at 02:37:44PM -0400, Peter Hartman wrote: http://sprunge.us/IfXW Note the first command I type in that is é ENTER Interesting, because I can't see the 'è' in the file, so it is not a problem of the fonts. I don't know why but st if doing something strange with the

[dev] [st] fonts and diacriticals

2012-09-17 Thread Roberto E. Vargas Caballero
Change all those little LC_ and LANG vars over now convinces st to behave. The problem seems that st suppouse the input keyboard is a utf8 device, and in the case you use a non utf8 locale it detects non ascii characters as first byte of a multibyte utf8 character (if you have good luck, because

[dev] [st] Patches

2012-09-19 Thread Roberto E. Vargas Caballero
Hi, A new serie of patches for st. Please send comments or suggestions. Best regards. From 703b3cfc0cdb4998abca6815dd32699705a9f912 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 19 Sep 2012 19:42:48 +0200 Subject: Clear X window in tsetreset

Re: [dev] [st] Patches

2012-09-19 Thread Roberto E. Vargas Caballero
Well... I was asking about comments and suggestion of the patches. I am not the person who can accept or deny new suggestion, but I am going to give my personal opinion. Would you also port st to wayland? I think in case of being possible, st is very far to do this, because it has a lot of

Re: [dev] [st] xft

2012-09-20 Thread Roberto E. Vargas Caballero
Please report back if it works. I will then simply apply it. It is not working fine for me. It seems have some problems with the size of the fonts. XIC xic; + XftDraw *xft_draw; + Visual *vis; int scr; Bool isfixed; /* is fixed geometry? */ int fx, fy, fw,

Re: [dev] [st] Patches

2012-09-20 Thread Roberto E. Vargas Caballero
Yeah! Oh, we could have a variable for everything that one could wish to start in st: STTMUX, STGNUSCREEN, STAALIBKDE... or we could just use -e. Yeah, even when you start it from a menu like dmenu or it is automatically spawned from a graphical application. It's true that a boolean variable

Re: [dev] st eight bit input

2012-09-20 Thread Roberto E. Vargas Caballero
I wonder if it's possible to get something like xterm's eightBitInput=true in st. I would like to use the alt key for some vim mappings. I'm not at all savvy on terminal stuff so any hint about how to hack the code to get this working would be very much appreciated. There isn't any switch

Re: [dev] [st] Patches

2012-09-20 Thread Roberto E. Vargas Caballero
how is -e not a solution? Uhmmm, I suck ^^!. dmenu allows you write the full command line, so you can use -e with it.

Re: [dev] [st] xft: line drawing

2012-09-25 Thread Roberto E. Vargas Caballero
Line drawing seems to be broke using the latest tip of st. I've tried it I also have problems with them. Using the default font I have some problems with line drawings and attributes (for example http://www.shike2.com/st.png). Is it the problem you have?. Best regards,

[dev] [st] Patch fix writing io file

2012-09-25 Thread Roberto E. Vargas Caballero
Fix a bug with multi byte characters. From a7ad8ce85ebddfacd1cab80d7b5b2189d0842d53 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Mon, 24 Sep 2012 22:58:47 +0200 Subject: Fix bug in tputc writing to io file If -f options is enabled then tputc() writes all

Re: [dev] [st] xft: line drawing

2012-09-26 Thread Roberto E. Vargas Caballero
On Wed, Sep 26, 2012 at 08:49:43AM +0200, Christoph Lohmann wrote: Greetings comrades. You guys forced me to do it. Attached is a preliminary patch to add line drawing, which is using UTF-8 characters, to the latest tip of st. Testing your patch, I saw that mutt doesn't use never \033 ( 0. I

[dev] Control characters patches

2012-09-26 Thread Roberto E. Vargas Caballero
Hello, These patches fix some control codes problems. Sincerely. From 2a346a24efb6a79d25dcfa1d0fb718267b8f6bac Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Mon, 24 Sep 2012 23:03:34 +0200 Subject: Ignore all control characters not handled Taken from

Re: [dev] [st] [sandy] wierd things happens to the font after sandy use

2012-09-28 Thread Roberto E. Vargas Caballero
On Fri, Sep 28, 2012 at 05:36:42PM +0200, KarlOskar Rikås wrote: This happens after i use sandy in st: http://ompldr.org/vZm84bA/wierd.png (warning large picture) Have anyone similar issues? I just updated st, sandy's config and st's are default I've only changed colors and font to

[dev] [st] New patches

2012-10-06 Thread Roberto E. Vargas Caballero
ea7f1156689131e069cfb302d7d97a68f6169565 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 27 Sep 2012 18:34:07 +0200 Subject: Add documentation to control codes Add the documentation from the vt100 manual programmer: Control Octal Action Taken Character Code

Re: [dev] [st] Patches

2012-10-07 Thread Roberto E. Vargas Caballero
On Sun, Oct 07, 2012 at 11:10:21AM +0200, Aurélien Aptel wrote: I don't think the DEC alignment test is necessary. Please read LEGACY in st repo. I duded about this, but like I was not sure I sent the patch to the list in order to begin a discussion about this. You can see that the message in

Re: [dev] [st] Patches

2012-10-07 Thread Roberto E. Vargas Caballero
I applied the patch for it to have a reason to modularize the tsetchar() function. I think this will be needed for another feature I have in mind. Then the test loop will be removed. Uhmmm, you could say me this and it was very easy for me split the patch and keep only that part. Next

[dev] [st] fileio patch

2012-10-09 Thread Roberto E. Vargas Caballero
Improve the error handling writing to the fileio. From 5321822f43782edfad107d71db558493552b3a65 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Tue, 9 Oct 2012 18:12:29 +0200 Subject: Add error control to iofile write can write less bytes than we request, so

[dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
this portability stuff is present. - A compat file (or one for each problematic System), where this interfaces are adapted. Please give your opinion, and don't worry if it is necessary modify this patch. Sincerely, Roberto E. Vargas Caballero From

Re: [dev] [st] Tip adds non-existing trailing whitespace upon mouse selection + fix

2012-10-09 Thread Roberto E. Vargas Caballero
written in it. I think other terminal emulators do something like this. Of course actual solution converts all tabs into spaces, but fix this is reallt complex and I think all the emulator take this aproach. Sincerely, Roberto E. Vargas Caballero.

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
This patch is fixing something st shouldn’t do. In my environment all the environment variables you propose to add are set. That’s something the shell should do and not the terminal emulator. A terminal emulator should be neutral to this. Sorry, but I think you are fixing something

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
Relay in correct values of LOGNAME and USER is a security risk. If st doesn't check against /etc/passwd you can get who(1) shows other user as connected, for example. Usually these variables are set by login(1), and like a terminal emulator is doing the login job, setting these variables are

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
That e‐mail has several reason to not support utmpx. The proposed patch has the same size of an equal dbus interface that would call some kind of logind. That’s the kind of cruft people complain about before they start to reinvent it using Javascript or Go. xterm uses libutempter, which

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
And if SHELL is not set, st before this patch segfault. Actually, this is a simple check to just use »/bin/sh«. Which environ‐ ment today does not have SHELL set? The code set SHELL only if is not set (3rd parameter of setenv). SHELL can be unset if a ugly user unset it ;).

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
How is this a possible security risk? St shouldn’t be used to control login shells. It’s there to show escape sequences jump around on a screen. The problem is that the terminal emulation is too much related to the pty stuff. The program who create the master/slave is the responsable

Re: [dev] Adding utmpx stuff

2012-10-09 Thread Roberto E. Vargas Caballero
It is also necessary set WINDOWID, because it is the XWindow ID of the terminal. I suppouse w3m needs this variable to print images in the terminal.

Re: [dev] [st] Tip adds non-existing trailing whitespace upon mouse selection + fix

2012-10-10 Thread Roberto E. Vargas Caballero
The GLYPH_SET flag can be used to compute the end of the line or we could add another flag like GLYPH_TAB when appropriate and test it in the copy function when it loops over the selection. Instead of adding GLYPH_TAB we could use directly \t in c and then we don't have to test anything in

Re: [dev] [st] toggle font

2012-10-10 Thread Roberto E. Vargas Caballero
I missed this feature a lot when light conditions and distance to display change, often so with a notebook, even more when different displays plugged. Of course, tmux helps -- kill, start new st, attach to the right session --, but I like this approach more. I also need this feature, but

Re: [dev] [st] toggle font

2012-10-11 Thread Roberto E. Vargas Caballero
Eugh. That isn't the way anything else is configured. It's a pretty weird interface. config.h, argv switches and potentially keybindings are reasonable ways to configure programs. stdin is just silly. St, like all others graphic terminal emualtors, receive escape sequences which configure it,

Re: [dev] [st] Tip adds non-existing trailing whitespace upon mouse selection + fix

2012-10-11 Thread Roberto E. Vargas Caballero
The GLYPH_SET flag can be used to compute the end of the line or we This patch uses this approach for locating the end of line and works fine for me. From 2192d284a3d002044d57592c6e36246a6d8882dc Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 11 Oct 2012 19

Re: [dev] [st] toggle font

2012-10-16 Thread Roberto E. Vargas Caballero
Surely, it would be better to use a separate control input stream, stdctl (or nstdctl), for configuration. Are you talking about keep, for example, file descriptor 3 for control operations?

Re: [dev] I don't want to live on this planet anymore

2012-10-31 Thread Roberto E. Vargas Caballero
My 3rd year computer science professor just said: In order to have a good program, it must be large *facepalm* This is something very common today. Teachers in the universities create minds that only can do very difficult things. I has to say that in my case was the same, and

Re: [dev] [st] 0.3 release

2012-11-05 Thread Roberto E. Vargas Caballero
We should try to improve and cleanup the selection code. It has not I agree. It has some strange behaviour, like for example the first time you press the mouse if you keep it pressed for a selection, then the selection is not highlighted.

Re: [dev] [st] line drawing?

2012-11-06 Thread Roberto E. Vargas Caballero
I just upgraded my st install to latest tip, and now all the line drawing characters (such as in mutt) are a lowercase 'd'. This seems suboptimal. Older st versions had stuff in config.h for configuring these, but that seems gone now. I just have tested it and it seems work for me. What

Re: [dev] [st] line drawing?

2012-11-06 Thread Roberto E. Vargas Caballero
If I switch to Liberation Mono it works. This is a pretty serious regression, since I used to be able to use whatever font I wanted without issue. It is a problem related to the switch to Xft. It impossible a font has all the unicode glyphs, so if the font fails in a glyph you have a

Re: [dev] [st] line drawing?

2012-11-07 Thread Roberto E. Vargas Caballero
I have the same problem. When I use Liberation Mono and start ncmcpp, everything is fine but when I quit the program, no cursor, I have to reset the terminal. When I'm using 'DejaVu Sans Mono', I have little squares in lieu of the drawing bars, but when I quit everything is fine. I just

[dev] [st] Patch

2012-11-07 Thread Roberto E. Vargas Caballero
This patch fixes the problems with hide/unhide. From d14745fa4d678c0b9abb21f8f2fe2913e30c26b0 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 7 Nov 2012 10:38:05 +0100 Subject: [PATCH] Fix bug restoring cursor position Sequences like DECSC, DECRC, ESC [?1047l

[dev] [st] Patch

2012-11-07 Thread Roberto E. Vargas Caballero
From 463bf62c9331f8a11e5dc41dc51b38f9746c45a3 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 7 Nov 2012 10:53:26 +0100 Subject: Clarify some or exclusive expressions Since relational expresions are always evaluated to 0 or 1, we can use bitwise xor operator

[dev] [st] Keyboard patches

2012-11-13 Thread Roberto E. Vargas Caballero
Hello, This is a new path series that fix some problems related to the keyboard, and also add the key definitions that were missed in st. Best regards. From 22e55d15af79e23a6f78c685a2ed73c3f10db1e1 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 8

Re: [dev] [st] Keyboard patches

2012-11-13 Thread Roberto E. Vargas Caballero
The patches are removing the hardcoded values in st and make them more configurable to how terminals work. In the future important shortcuts Not only does this. There is some conditions that can not be handle with the previous code. All the keypad keys can generate two values depend of the

Re: [dev] [st] Keyboard patches

2012-11-14 Thread Roberto E. Vargas Caballero
This patch serie adds a lot of new keys and modify all the previous. Although I have tested it deeply it is very possible that some of them don't work (code error or terminfo entry error), like the tab key that Christoph found, so it is necessary a lot of testing. Please if you find some

[dev] [st] Fix the tab key

2012-11-14 Thread Roberto E. Vargas Caballero
Hello, After last patch serie tab key was not working correctly and this patch fix the problem. I also want to comment this line in kmap: state = ~Mod2Mask I don't know why this line is writing there, but it removes any combination using Super key. I think it is necessary remove

Re: [dev] [st] Fix the tab key

2012-11-14 Thread Roberto E. Vargas Caballero
I forgot the patch, sorry. On Wed, Nov 14, 2012 at 11:08:27AM +0100, Roberto E. Vargas Caballero wrote: Hello, After last patch serie tab key was not working correctly and this patch fix the problem. I also want to comment this line in kmap: state = ~Mod2Mask I don't know

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Roberto E. Vargas Caballero
the actual mercurial tip. Best regards. From 931003d3252ab1a0c97b762ae29c5f939db1de44 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 14 Nov 2012 11:00:08 +0100 Subject: Fix tab key When Shift + Tab is pressed X server send the event XK_ISO_Left_Tab with ShiftMask, so

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
On Thu, Nov 15, 2012 at 03:25:52PM +0100, Eckehard Berns wrote: I added some code to make insert mode work in st. I don't know if I missed something, but It's Working For Me(tm). Patch attached. I had a patch already ready for sending to solve this issue, but you were faster ;). I put my code

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
What are you using this insert mode for? The sequence for this mode was in st from historical times (before I met it), it changes the st mode but does nothing. Maybe you should ask to Aurielien why he implemented the set/reset sequences but not the behaviour. Best regards,

Re: [dev] [st] Add insert mode

2012-11-15 Thread Roberto E. Vargas Caballero
Ok, that seems like a legit feature. Which applications you encountered are using this mode? Only nvi and vi? Theorically all good applications should use this mode, but in these days is not always true. For example bash repaint the full line each time you write a line, it is very funny when

Re: [dev] [st] Fix the tab key

2012-11-15 Thread Roberto E. Vargas Caballero
b06832d5f12d75daa8c640d91bc4ee97bad24bc2 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 15 Nov 2012 18:18:24 +0100 Subject: Fix Shift + Insert shortcut This patch apply the same code for shortcuts that it is used now for defined keys. So it is possible use now XK_NO_MOD and XK_ANY_MOD

[dev] [st] some minor patches

2012-11-15 Thread Roberto E. Vargas Caballero
From fe3fa59836a389992cbf07f63a5007fb1e24f9e6 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Wed, 14 Nov 2012 19:20:28 +0100 Subject: Remove unused fields in cursor_movement --- st.c |4 1 file changed, 4 deletions(-) diff --git a/st.c b/st.c index

[dev] [st] Home key

2012-11-16 Thread Roberto E. Vargas Caballero
This patch clean a bit the definition of Home key. From 9eb08122011a9f2c19a5ba74208d73b6a1bde0f9 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Fri, 16 Nov 2012 09:11:25 +0100 Subject: Add application cursor sequences for Home The commit 'Fixing some key issues

Re: [dev] [st] Terminus font

2012-11-25 Thread Roberto E. Vargas Caballero
On Sat, Nov 24, 2012 at 12:01:33AM +0400, p37si...@lavabit.com wrote: On Fri, Nov 23, 2012 at 02:27:28PM -0500, Carlos Torres wrote: That sounds like a fontconfig question, you can probably set some options specific to terminus in your .fontconfig file Really, Terminus:file=ter-x16n.pcf.gz

[dev] [st] keymap patches

2012-11-25 Thread Roberto E. Vargas Caballero
Hello, A new serie of patches which improves the ansi mode of st. Best regards, From 3410b47ebbdc92aadeed2841f001a02ea014a92c Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Fri, 16 Nov 2012 12:02:51 +0100 Subject: Fix value of ka1 terminfo capability

Re: [dev] [suckless] Migration to git

2012-11-26 Thread Roberto E. Vargas Caballero
Dpb on IRC showed me [0], which seems to do a near to perfect import of the old hg history. Anyone had bad experiences with this? I have experience with git and importing others vc to it, but I have never done it with Mercurial. Uhmm, I have done it with st repository of course, I work

Re: [dev] [suckless] Migration to git

2012-11-26 Thread Roberto E. Vargas Caballero
the following instructions depend on hggit module being installed and enabled in hgrc. fyi export hg repo to github $ hg log | grep ^user |sort -u | sed -e 's, ,\t,g' |awk '{print $2=pancake panc...@nopcode.org}' map $ vim map # remove user: and set=value $ hg

Re: [dev] [suckless] Migration to git

2012-11-26 Thread Roberto E. Vargas Caballero
if we're going to change vcs just to change, why not move back to darcs or something? I'm still waiting for anyone to make any kind of case for changing to git other than lots of people use it. I don't matter if the repositories change or not, I am using git now, but if you want some reasons

Re: [dev] [suckless] Migration to git

2012-11-26 Thread Roberto E. Vargas Caballero
The git source tree is more than four hundred percent bigger than the are you comparing the size of a project in python with the size of a project written in C?. The logical relation should be 2 times the size of hg, and then you could say that they have a similar size. mercurial source tree.

Re: [dev] [suckless] Migration to git

2012-11-26 Thread Roberto E. Vargas Caballero
All you've done is convince me that git is its own operating system. It's ludicrously complex and needlessly huge. I don't care that it is trendy or popular with developers; most of the 'benefits' you listed are basically using git as though it were an entire disk filesystem. I am going to

Re: [dev] Migration to git

2012-11-29 Thread Roberto E. Vargas Caballero
Quick question - A long time ago I asked if it was possible to clone _all_ the hg repositories without having to manually specify them from the suckless site. The answer I got was no. With the transfer to git, would it be possible for me to clone all of the suckless

Re: [dev] Migration to git

2012-11-29 Thread Roberto E. Vargas Caballero
How can be pathes for dwm be managerd via git? I mean I need a patch queue somehow, I'm thinking branches, I'll create a local branch with my patches applied and I will hack through its history. I usually work in this way. After generate the patch sequence I get the diff with git

Re: [dev] [st] delete key didn't work correctly

2012-12-10 Thread Roberto E. Vargas Caballero
Now, st's delete key didn't work, and I looked into the code long enough to say with confidence, there's nothing wrong with kmap(). I can see that you change the order of Delete definitions in your patch. Theoretically this should not work because the keypdap column is different. If your patch

Re: [dev] [st] Unexpected Insert key behavior in mc

2012-12-10 Thread Roberto E. Vargas Caballero
It seems that in current version of st it is impossible to select files in mc using Insert key, instead it enters 4h in command prompt. I do not know why this happens, but I know that this did not happen in 0.2. I have tested it with the HEAD and works fine for me. What value of TERM do you

Re: [dev] [st] Unexpected Insert key behavior in mc

2012-12-10 Thread Roberto E. Vargas Caballero
I did git pull before compiling today. Since I did not do install previously I have tested it after doing install, thus with updated terminfo, it still does not work correctly. My term is st-256color . same here with st-256color. I'm half way planning to look into this once more

Re: [dev] [st] delete key didn't work correctly

2012-12-10 Thread Roberto E. Vargas Caballero
On my machine, just toggling the keypad values on the delete lines worked at first (the ordering of them doesn't seem to matter for me), but then I did a make install and they stopped working. I copied over some old versions of st terminfo files (I can't remember from when) and they started

Re: [dev] [st] Unexpected Insert key behavior in mc

2012-12-10 Thread Roberto E. Vargas Caballero
Since we had these two discussions goin on parallel, my guts told me to revert my patch to config.h today. Then I did something a bit different. It now works for both sandy and mc correctly, likewise for DEL, INS and HOME which were making trouble yesterday. Attached is the patch which works

[dev] [st] Add a newline to the string printed in die

2012-12-11 Thread Roberto E. Vargas Caballero
After a call to die the program exits and the shell take the control, so it is better for the user the shell begins in an new line, and it is better for the programmer don't have to explicitly add it in each call to die. --- st.c | 45 +++-- 1 file

Re: [dev] [st] Add a newline to the string printed in die

2012-12-11 Thread Roberto E. Vargas Caballero
No, this will change the die() behaviour between all suckless projects. Then, change die in all the projects, it is the usual way of working with other issues, no? Please send patches as attached files. Since we are using now git, it is easier and logic send the patches in this way, so the

Re: [dev] [st] Shift Tab does not work

2012-12-13 Thread Roberto E. Vargas Caballero
But, it's error-prone to have two places to keep track of what keys get mapped. So, I fixed this for myself a while ago by removing mappedkeys entirely. Patch attached. I agree with you that it is error-prone, but if we remove it then each time a key is pressed it is necessary look up in

[dev] [st] About some bugsy programs and st

2012-12-14 Thread Roberto E. Vargas Caballero
In the last days some persons have comment that they have problems with the Delete key in bash or irssi. In this case, it is not a problem of st, but a problem of bash or irssi. Taken from terminfo: If the terminal has a keypad that transmits codes when the keys are pressed,

Re: [dev] [st] font fallback

2013-01-05 Thread Roberto E. Vargas Caballero
That’s only partially true. The array is adding 48k, which another patch series will reduce. Most of the additional memory usage is due to the font handling. So the inability of font handling in X.org/Fontconfig is the reason why too much has to be done over and over again. Yet another

Re: [dev] [st] zsh and del/pos1 key

2013-01-06 Thread Roberto E. Vargas Caballero
On Sun, Jan 06, 2013 at 09:43:49PM +0400, p37si...@lavabit.com wrote: This patch fixes it for me. Don't know how to fix it correctly yet. Please take a look to this message in the list: http://lists.suckless.org/dev/1212/13848.html Maybe we should add the information in the FAQ.

Re: [dev] [st] Vim background color doesn't fill entire line

2013-01-06 Thread Roberto E. Vargas Caballero
except one tiny thing: the background color of the text in Vim would not fill in anything that wasn't a character. In Vim I have it set to a gray and my term is black. Any ideas to properly fix this instead of changing my term color? I would try and fix this myself but I have no

Re: [dev] [st] zsh and del/pos1 key

2013-01-07 Thread Roberto E. Vargas Caballero
On Mon, Jan 07, 2013 at 08:47:08AM +0100, Roberto E. Vargas Caballero wrote: On Sun, Jan 06, 2013 at 09:43:49PM +0400, p37si...@lavabit.com wrote: This patch fixes it for me. Don't know how to fix it correctly yet. Please take a look to this message in the list: http

Re: [dev] [st] zsh and del/pos1 key

2013-01-07 Thread Roberto E. Vargas Caballero
Roberto E. Vargas Caballero: http://lists.suckless.org/dev/1212/13848.html This works for Del in bash. But it doesn't fix Pos1 or Del in zsh. Even echo ^[?1h^[= /dev/tty command? (^[ means \01b, you can get it using ^v Esc) In the thread we agreed that we should point the bug

Re: [dev] [st] Shift+F1 should by F11?

2013-01-10 Thread Roberto E. Vargas Caballero
On Wed, Jan 09, 2013 at 10:59:59AM +, Mihail Zenkov wrote: I have problem in mc with Shift+Fx. In st Shift+F6 generate code for F18 but mc wait F16 for it. From http://aperiodic.net/phil/archives/Geekery/term-function-keys.html Shift-F1 through Shift-F10 function as F11 through F20 and

Re: [dev] [st] Shift+F1 should by F11?

2013-01-11 Thread Roberto E. Vargas Caballero
On Thu, Jan 10, 2013 at 04:29:08PM +, Mihail Zenkov wrote: I also find in https://www.midnight-commander.org/wiki/roadmap: Use KDGKBENT ioctl on Linux console to find the mapping for shifted functional keys. Two mappings are widely used (Shift-F1 = F11 and Shift-F1 = F13). mc should

Re: [dev] [st] zsh and del/pos1 key

2013-01-14 Thread Roberto E. Vargas Caballero
6c8ebf8f9e8842a1278a769fce18408702082fdb Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Mon, 14 Jan 2013 11:37:18 +0100 Subject: [PATCH] Add information about zsh keymap solution In the FAQ you can find some information about how get your bugsy bash be able

  1   2   3   4   5   6   7   8   >