Re: Midnight Commander - show/hide panel
> I have been trying out Midnight Commander on Cygwin and noticed that > (like vim) it has a shortcut (control+0) for going back to the command > prompt. > > However, on Cygwin, typing anything immediately brings back Midnight > Commander. I tried this on a Linux machine and it works ok, meaning I > can do things and get back to mc only after re-typing control+o. Found it: mc -U Rob :) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Midnight Commander - show/hide panel
Hi All, I have been trying out Midnight Commander on Cygwin and noticed that (like vim) it has a shortcut (control+0) for going back to the command prompt. However, on Cygwin, typing anything immediately brings back Midnight Commander. I tried this on a Linux machine and it works ok, meaning I can do things and get back to mc only after re-typing control+o. Is there anything to fix this on Cygwin? Thanks for any assistance! Rob :) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: using a single instance of vim in cygwin
Thank you for your advice Corinna! >> The --servername options doesn't work on my Cygwin vim. Is there any >> work-around to have vim on Cygwin use a single instance? > > Plain vim is explicitly build without X support, which is required for > the clientserver option. This should work with gvim under X, though. > If you want to use plain vim, just build it yourself. Plain vim for > Cygwin is configured with > > --without-x --enable-gui=no --with-features=huge I think I will solve this problem from the other end: http://robertmarkbramprogrammer.blogspot.com/2008/12/searching-files-within-vim-and-opening.html Rob :) General Blog: http://robertmarkbram.blogspot.com/ Technical Blog: http://robertmarkbramprogrammer.blogspot.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
using a single instance of vim in cygwin
Hi All, I read the tip here for using vim in server mode so that any new files you open in vim will go to the same vim instance in a new tab: http://piao-tech.blogspot.com/2008/10/open-new-files-as-tabs-in-current-vim.html The --servername options doesn't work on my Cygwin vim. Is there any work-around to have vim on Cygwin use a single instance? Rob :) General Blog: http://robertmarkbram.blogspot.com/ Technical Blog: http://robertmarkbramprogrammer.blogspot.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cdargs usage
Hi All, The cdargs manpage says: select current entry. But when I go to cdargs browse or list mode, I exit cdargs but the directory hasn't changed. Have I misinterpreted how cdargs works in Cygwin? Any help would be most appreciated! Rob :) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: auto complete history
Thank you Thorsten >> In a previous installation of Cygwin, I had 'history auto complete' in > Depends on your shell. In Zsh it would be... > and in Bash... >"\e[A": history-search-backward >"\e[B": history-search-forward > Put these in your .zshrc or .inputrc. I also needed this in my .bashrc, and the above works. Thank you! export INPUTRC=$HOME/.inputrc Rob :) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
auto complete history
Hi All, In a previous installation of Cygwin, I had 'history auto complete' in so far as I could type a letter, press the up key and the prompt would cycle through the most recent entries in history whose first letter matches the letter I typed. On my newest install, this feature isn't present. Can anyone please let me know how to put it in place? Thanks! Rob :) -- General Blog: http://robertmarkbram.blogspot.com/ Technical Blog: http://robertmarkbramprogrammer.blogspot.com/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: exiting vim changes background colour of console
Hi Igor, > > My PS1 variable is: > > \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m > > > > bash2.05b User rbram on host cml035835 in dir /cygdrive/c/eTech/eForms2 > > Thu Oct 20 07:16 AM> echo $PS1 > > \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m > > Note that the end of your PS1 resets the color to "black background"... > Removing that '\e[0;30m' should fix your problem, unless you want your > window background to be something other than grey, in which case you'll > have to put in a background change to whatever your window background is. > > FWIW, you might also want to put \[ and \] around the non-printable > characters in PS1, to help bash calculate the prompt length better, e.g., > > export PS1='\[\e[47m\]\n\s\v User \u on host \h in dir \w\n\d \@>' Ok, here is part of my .bash_profile now: blackOnLightGrey='\[\e[47m\]' blue='\[\e[1;34m\]' red='\[\e[1;31m\]' blackOnWhite='\[\e[0;0;37;30m\]' # export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@> " export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@>\e[0m " # export PS1="${blackOnLightGrey}\n\s\v User \u on host \h in dir \w\n\d \@>${blackOnWhite} " None of the PS1s above fix the issue! I.e. when I open a console I see what I want: console with white background and black foreground, with the prompt rendered as black foreground on grey background, but then whenever I do a man, less, vim and exit, the screen get a black background that I can make go away by pressing "ENTER" repeatedly i.e. shifting the black off screen. Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: exiting vim changes background colour of console
Hi Igor, > > > > > > == > > > > > > I am finding that when I exit from vim, it turns my background > > > > > > back into black (which is how I had it before I tried changing > > > > > > it today). Is there a setting or something I have forgotten to > > > > > > change? > > > > > > == > > > > > > Actually this is happenning not just after vim.. but even after > > > > > > I exit "less"! > > > > > > > > > > Works for me. Did you close the console window and re-open one after > > > > > changing the colors? Before doing this, the console colors are known > > > > > to be scrambled as you describe above. > > > > > > > > Yes I closed and re-opened the console and the problem recurs. :-/ > > > > > > vim (and less, since you seem to have the same problem there) use > > > something called an "alternate screen". This is a feature of the terminal > > > that allows the program to make arbitrary modifications to the terminal > > > screen that will be undone when the program switches back to the main > > > screen. In particular, any color changes will be undone. Consequently, > > > if you wish to change the color of the main screen, don't do this while > > > running vim or less. > > > HTH, > > > > I admit to being somewhat confused by your remark - I didn't change the > > screen while running vim or less. I edited the properties of the console > > so that it would affect all consoles with the same name, changed the PS1 > > environment variable in my .bash_profile, closed the console, re-opened > > it, ran vim and/or less, exited vim and/or less and then found the > > console colors changed. Have I misunderstood your point? > > > > Interestingly, I find that I can keep pressing ENTER and 'clear' the > > screen back to how it was, but this is an ugly solution. > > What is the value of your PS1 variable? Does it, perhaps, contain the > code at the end that resets the background? That was the only way I could > reproduce the behavior you report on my machine. My PS1 variable is: \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m bash2.05b User rbram on host cml035835 in dir /cygdrive/c/eTech/eForms2 Thu Oct 20 07:16 AM> echo $PS1 \e[47m\n\s\v User \u on host \h in dir \w\n\d \@>\e[0;30m Rob :) This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: exiting vim changes background colour of console
Hi Igor, Thanks to you and Corinna for the feedback so far! > > > > == > > > > I am finding that when I exit from vim, it turns my background > > > > back into black (which is how I had it before I tried changing > > > > it today). Is there a setting or something I have forgotten to > > > > change? > > > > == > > > > Actually this is happenning not just after vim.. but even after I exit > > > > "less"! > > > > > > Works for me. Did you close the console window and re-open one after > > > changing the colors? Before doing this, the console colors are known > > > to be scrambled as you describe above. > > > > Yes I closed and re-opened the console and the problem recurs. :-/ > > vim (and less, since you seem to have the same problem there) use > something called an "alternate screen". This is a feature of the terminal > that allows the program to make arbitrary modifications to the terminal > screen that will be undone when the program switches back to the main > screen. In particular, any color changes will be undone. Consequently, > if you wish to change the color of the main screen, don't do this while > running vim or less. > HTH, I admit to being somewhat confused by your remark - I didn't change the screen while running vim or less. I edited the properties of the console so that it would affect all consoles with the same name, changed the PS1 environment variable in my .bash_profile, closed the console, re-opened it, ran vim and/or less, exited vim and/or less and then found the console colors changed. Have I misunderstood your point? Interestingly, I find that I can keep pressing ENTER and 'clear' the screen back to how it was, but this is an ugly solution. Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 -Original Message- From: Igor Pechtchanski [mailto:[EMAIL PROTECTED] Sent: Wednesday, 19 October 2005 4:28 AM To: Robert Bram Cc: cygwin@cygwin.com Subject: RE: exiting vim changes background colour of console On Tue, 18 Oct 2005, Robert Bram wrote: > Hi Corinna, > > > > == > > > I am finding that when I exit from vim, it turns my background > > > back into black (which is how I had it before I tried changing > > > it today). Is there a setting or something I have forgotten to > > > change? > > > == > > > Actually this is happenning not just after vim.. but even after I exit > > > "less"! > > > > Works for me. Did you close the console window and re-open one after > > changing the colors? Before doing this, the console colors are known > > to be scrambled as you describe above. > > Yes I closed and re-opened the console and the problem recurs. :-/ vim (and less, since you seem to have the same problem there) use something called an "alternate screen". This is a feature of the terminal that allows the program to make arbitrary modifications to the terminal screen that will be undone when the program switches back to the main screen. In particular, any color changes will be undone. Consequently, if you wish to change the color of the main screen, don't do this while running vim or less. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: exiting vim changes background colour of console
Hi Corinna, > > == > > I am finding that when I exit from vim, it turns my background > > back into black (which is how I had it before I tried changing > > it today). Is there a setting or something I have forgotten to > > change? > > == > > Actually this is happenning not just after vim.. but even after I exit > > "less"! > > Works for me. Did you close the console window and re-open one after > changing the colors? Before doing this, the console colors are known > to be scrambled as you describe above. Yes I closed and re-opened the console and the problem recurs. :-/ Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: exiting vim changes background colour of console
== I am finding that when I exit from vim, it turns my background back into black (which is how I had it before I tried changing it today). Is there a setting or something I have forgotten to change? == Actually this is happenning not just after vim.. but even after I exit "less"! Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 > -Original Message- > From: Robert Bram > Sent: Monday, 17 October 2005 1:25 PM > To: 'cygwin@cygwin.com' > Subject: exiting vim changes background colour of console > > Hi All! > > I am finding that when I exit from vim, it turns my background back into > black (which is how I had it before I tried changing it today). Is there a > setting or something I have forgotten to change? > > Kind regards, > > Rob > :) > > --- > Robert Mark Bram > Portal Analyst Programmer > eTechnology, Coles Myer Limited > [EMAIL PROTECTED] > +61 3 9635 1036 > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Customising prompt
Hi All! I want my prompt like this: bash2.05b User rbram on host cml035835 in dir /cygdrive/c/ Mon Oct 17 12:52:59> Here is my attempt so far: PS1="\n\s\v \[\e[31m\]User \[\e[34m\]\u \[\e[31m\]on host \[\e[34m\]\h\[\e[31m\] in dir \[\e[34m\]\w\n\d \t> \e[30;47m " The issue is this: the I am getting black text on grey background - why is this? I thought "\e[30;47m " means black text on white background. That is what I understood from this page: http://www.pantz.org/scripting/shell/colorterm.shtml Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
exiting vim changes background colour of console
Hi All! I am finding that when I exit from vim, it turns my background back into black (which is how I had it before I tried changing it today). Is there a setting or something I have forgotten to change? Kind regards, Rob :) --- Robert Mark Bram Portal Analyst Programmer eTechnology, Coles Myer Limited [EMAIL PROTECTED] +61 3 9635 1036 This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/