Re: [dev] st utf8 printing
On 4/13/12, Connor Lane Smith wrote: > vim *is* a GUI. It's not a line editor, is it? libcurses is a GUI > toolkit too, it just happens to abstract over the hack that is ANSI > escapes. > The curses version is a TUI; it uses characters rather than arbitrary icons or drawing graphics.
Re: [dev] fix numlock bug
On 4/13/12, Nikolay G. Petrov wrote: > When my "numlock" is active, I can't switching under different workspace > or start the terminal,or by press on mouse button, nothings works! When > I switch off "numlock", all is ok. > Where in source code I can fix that? > Try stepping through updatenumlockmask() and checking the value of unsigned int numlockmask.
Re: [dev] st utf8 printing
On 14 April 2012 16:12, Bjartur Thorlacius wrote: > The curses version is a TUI; it uses characters rather than arbitrary > icons or drawing graphics. So do other vim GUIs. It's a text editor. Looking at my vim I just see a lot of text. Text which I edit. But that aside, the distinction between TUIs and GUIs is completely artificial. The only difference is that a "TUI" *cannot* display images, even when it might be useful. A well-designed text editor GUI will be pretty much entirely text too. cls
[dev] Lightweight UTF-8 library
Hey all, I've written a UTF-8 library based on Plan 9's libutf API, with a bunch of improvements [1]. I've tested it on various correct and incorrect inputs and it seems to be 100% Unicode compliant (unlike Plan 9), but if anyone finds any bugs please tell me. Might this be useful to have on hg.suckless.org? [1]: http://lubutu.com/code/utf8-library Thanks, cls
Re: [dev] Lightweight UTF-8 library
Looks quite spiffy. One question: is a rune the same as a glyph? Or a codepoint? Or what? Also, a bit of documentation would be nice, just a sentence saying what each function does, plus an example of its use. I know it isn't complicated to work out from the function names, but it's still nice to have around. Oh, and maybe a make install rule. But yeah, I like this, looks good. Nick pgpgmyeZspMrq.pgp Description: PGP signature
Re: [dev] Lightweight UTF-8 library
On 2012-04-14, Nick wrote: > One question: is a rune the same as a glyph? Or a codepoint? Or > what? ‘rune’ == ‘Unicode code point’ > Also, a bit of documentation would be nice, just a sentence saying > what each function does, plus an example of its use. I know it isn't > complicated to work out from the function names, but it's still nice > to have around. You could try the Plan 9 man pages on http://man.cat-v.org/ . Robert Ransom
Re: [dev] Lightweight UTF-8 library
On 14 April 2012 19:24, Nick wrote: > Also, a bit of documentation would be nice, just a sentence saying > what each function does, plus an example of its use. I know it isn't > complicated to work out from the function names, but it's still nice > to have around. The functions have descriptive comments in the source. You could also look at the Plan 9 man pages, as Robert says. The relevant page, rune(2) [1] is now linked on the library webpage. I suppose I could write my own manpage too. > Oh, and maybe a make install rule. I'm unsure about the namespacing issues etc with respect to this. I suspect utf.h and utf.o / libutf.a are potentially quite clash-prone. [1]: http://man.cat-v.org/plan_9/2/rune cls
Re: [dev] fix numlock bug
14.04.2012 19:20, Bjartur Thorlacius написал: On 4/13/12, Nikolay G. Petrov wrote: When my "numlock" is active, I can't switching under different workspace or start the terminal,or by press on mouse button, nothings works! When I switch off "numlock", all is ok. Where in source code I can fix that? Try stepping through updatenumlockmask() and checking the value of unsigned int numlockmask. grep -i numlockmask dwm.c /*#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))*/ #define CLEANMASK(mask) (mask & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) static void updatenumlockmask(void); static unsigned int numlockmask = 0; updatenumlockmask(); unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; updatenumlockmask(); unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; updatenumlockmask(void) { numlockmask = 0; in this source I need to remove all about "numlockmask", or not?