[Fish-users] still problems with control-y
I'm still trying to solve my problems with control-y. The problem is that control-y is not recognized. (Does anyone else have this problem?) Some more debugging showed me what fish is doing. while it is waiting for a key, it is on the line: res = select( fd_max, fd, 0, 0, 0 ); in input_common.c in readb() . When select() exits, input should be available, and fish proceeds to read_blocked() in common.c, where it calls read(). At least that is what is supposed to happen. For some reason, when I press control-y on my machine, select exits, but the next call to read() has no data available, so it blocks. I'm not sure why this happens, I'm actually not sure how fish does all its magic. It probably has to do with terminfo, and which keys are initialized in input_terminfo_init()... control-y seems to produce suspend in a program. When ctrl-y is entered, then the next time read() exits, a normal program suspends. Maybe I have the wrong ncurses installed? I have 5.4 I installed fish initially through fink, though now I compile it. I don't know if this is a related problem, or not, but I also can't use esc-key for any key (usually, that would be esc-d...). I can use alt-key, though Michael -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] still problems with control-y
OK, I found some kind of solution for control-y. in reader_init() in reader.c, I added the line: shell_modes.c_cc[VDSUSP]=_POSIX_VDISABLE ; This now allows control-y to be used. This line will work if termios.h is included. I'm not sure why I had this problem, so I don't know if this is THE correct solution. Michael --- void reader_init() { tcgetattr(0,shell_modes);/* get the current terminal modes */ memcpy( saved_modes, shell_modes, sizeof(saved_modes)); /* save a copy so we can reset the terminal later */ shell_modes.c_lflag = ~ICANON; /* turn off canonical mode */ shell_modes.c_lflag = ~ECHO; /* turn off echo mode */ shell_modes.c_cc[VMIN]=1; shell_modes.c_cc[VTIME]=0; shell_modes.c_cc[VDSUSP]=_POSIX_VDISABLE ; /* to get control-y to work */ al_init( current_filename); } --- On 3 Apr 2010, at 10:37, Michael Lachmann wrote: I'm still trying to solve my problems with control-y. The problem is that control-y is not recognized. (Does anyone else have this problem?) Some more debugging showed me what fish is doing. while it is waiting for a key, it is on the line: res = select( fd_max, fd, 0, 0, 0 ); in input_common.c in readb() . When select() exits, input should be available, and fish proceeds to read_blocked() in common.c, where it calls read(). At least that is what is supposed to happen. For some reason, when I press control-y on my machine, select exits, but the next call to read() has no data available, so it blocks. I'm not sure why this happens, I'm actually not sure how fish does all its magic. It probably has to do with terminfo, and which keys are initialized in input_terminfo_init()... control-y seems to produce suspend in a program. When ctrl-y is entered, then the next time read() exits, a normal program suspends. Maybe I have the wrong ncurses installed? I have 5.4 I installed fish initially through fink, though now I compile it. I don't know if this is a related problem, or not, but I also can't use esc-key for any key (usually, that would be esc-d...). I can use alt-key, though Michael -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
On 04/03/10 10:10, David Frascone wrote: I'm not sure I understand your point. Are you saying that seq should have been implemented with bash instead of fish? Or bash instead of bc? Or that we shouldn't use fish at all, but use bash instead? I know in the man pages of zsh they say that zsh is a command prompt and strictly differentiate command prompts from scripting languages, citing security isseus, code coverage, and collective knowledge as reasons for leaving bash around for scripts. I do feel the same way about fish, but, without understanding your point, I'm not sure if I've addressed your comments. eh, I was just rantingActually I am confused by why there isn't any official version of 'seq' for Mac OS X. I think one should exist. -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Uniquely add to path?
On Fri, Apr 2, 2010 at 7:28 PM, David Frascone d...@frascone.com wrote: I like the third function . . .. but I'd do a -d $x, since it should be a directory :) Sure. Also, the test should be contains $x $PATH. And the test should be done with two if-statements. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
A -- I just looked, and there is a /usr/bin/gseq, which does the same thing. So, it does exist, it's just named differently :) -Dave On Sat, Apr 3, 2010 at 3:17 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 04/03/10 10:10, David Frascone wrote: I'm not sure I understand your point. Are you saying that seq should have been implemented with bash instead of fish? Or bash instead of bc? Or that we shouldn't use fish at all, but use bash instead? I know in the man pages of zsh they say that zsh is a command prompt and strictly differentiate command prompts from scripting languages, citing security isseus, code coverage, and collective knowledge as reasons for leaving bash around for scripts. I do feel the same way about fish, but, without understanding your point, I'm not sure if I've addressed your comments. eh, I was just rantingActually I am confused by why there isn't any official version of 'seq' for Mac OS X. I think one should exist. -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
On my OS X 10.6.3, doing a ‘which' it shows there’s a seq and a gseq. /opt/local/bin/seq /opt/local/bin/gseq r...@rcmbp /o/l/bin# /opt/local/bin/seq 10 -1 1 fish: invalid option -- 1 r...@rcmbp /o/l/bin# /opt/local/bin/gseq 10 -1 1 10 9 8 7 6 5 4 3 2 1 For whatever reason, I get the invalid option error from seq but not from gseq. Regards, Rick -- Rick Cogley Mobile: 090-9959-5452 (Outside Japan, remove 0. +81-3-...) -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
Seq was installed by fish, and has the bug unless you've grabbed my tree or applied my patches. -Dave Sent from my iPhone On Apr 3, 2010, at 8:04 PM, Rick Cogley rick.cog...@gmail.com wrote: On my OS X 10.6.3, doing a ‘which' it shows there’s a seq and a gseq. /opt/local/bin/seq /opt/local/bin/gseq r...@rcmbp /o/l/bin# /opt/local/bin/seq 10 -1 1 fish: invalid option -- 1 r...@rcmbp /o/l/bin# /opt/local/bin/gseq 10 -1 1 10 9 8 7 6 5 4 3 2 1 For whatever reason, I get the invalid option error from seq but not from gseq. Regards, Rick -- Rick Cogley Mobile: 090-9959-5452 (Outside Japan, remove 0. +81-3-...) --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fixing title setting in OS X
2010/4/3 David Frascone d...@frascone.com I need to check out a linux tree from darcs and apply these changes to make sure I'm not breaking anything . . . My git repo (and yours if you cloned from mine) contains the full history, so to get the current state of the darcs repo (i.e. Axel's latest code), you can just do something like git commit -a -m 'Temp' # if you have uncommitted changes git checkout -b axel git reset --hard 1eb089d # That's axel's latest commit, from early '09 —Ben -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users