Re: The meaning of nothing... ?

2006-09-30 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Subject: Re: The meaning of nothing... ?
Date: Sun, 01 Oct 2006 06:05:08 +0200

> Meino Christian Cramer wrote:
> [...]
> > Hi Tony, hi Yakov! :)
> > 
> >  the term information database on my system is not the problem in that
> >  way. What I am trying to try :) is to dump the builtin term settings
> >  of vim in a way so I can manipulate the systems term settings, cause 
> >  "many systems carry faulty termcap/terminfo databases". So -- if vims
> >  terminfo settings for a certain terminal are better -- why not to use
> >  them system wide ?
> > 
> >  It is not the problem to dump and or reveal the terminfos of my
> >  Linux :)
> > 
> >  Keep hacking!
> >  mcc
> > 
> 
> Well,
> 
>   :redir > termcap.txt
>   :set termcap
>   :redir END
> 
> You may still have to do some editing before the file can be used as input to 
> the terminfo compiler.
> 
> See
>   man 5 terminfo
>   man 1 tic
> 
> from the shell.
> 
> 
> Best regards,
> Tony.

Hi Tony,

 I will try this! Thanks for the input!

 Keep hacking!
 mcc
 


Re: The meaning of nothing... ?

2006-09-30 Thread A.J.Mechelynck

Meino Christian Cramer wrote:
[...]

Hi Tony, hi Yakov! :)

 the term information database on my system is not the problem in that
 way. What I am trying to try :) is to dump the builtin term settings
 of vim in a way so I can manipulate the systems term settings, cause 
 "many systems carry faulty termcap/terminfo databases". So -- if vims

 terminfo settings for a certain terminal are better -- why not to use
 them system wide ?

 It is not the problem to dump and or reveal the terminfos of my
 Linux :)

 Keep hacking!
 mcc



Well,

:redir > termcap.txt
:set termcap
:redir END

You may still have to do some editing before the file can be used as input to 
the terminfo compiler.


See
man 5 terminfo
man 1 tic

from the shell.


Best regards,
Tony.


Re: The meaning of nothing... ?

2006-09-30 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Subject: Re: The meaning of nothing... ?
Date: Sun, 01 Oct 2006 00:42:56 +0200

> Yakov Lerner wrote:
> [...]
> > Something more on the topic.
> > 
> > - To print full termnifo capabilities of terminal 'xterm' from
> > file /usr/share/terminfo/x/xtern:
> >infocmp xterm
> > 
> > - to list all terminals in the  terminfo database:
> >   ls -R /usr/share/terminfo/
> >   toe
> > 
> > Yakov
> > 
> 
> or maybe
> 
>   ls -Rl /usr/share/terminfo > ~/termlist.txt
> 
> On my system, there are 2502 names, including 1010 aliases (i.e. soft links).
> 
> 
> Best regards,
> Tony.
> 

Hi Tony, hi Yakov! :)

 the term information database on my system is not the problem in that
 way. What I am trying to try :) is to dump the builtin term settings
 of vim in a way so I can manipulate the systems term settings, cause 
 "many systems carry faulty termcap/terminfo databases". So -- if vims
 terminfo settings for a certain terminal are better -- why not to use
 them system wide ?

 It is not the problem to dump and or reveal the terminfos of my
 Linux :)

 Keep hacking!
 mcc


Re: The meaning of nothing... ?

2006-09-30 Thread A.J.Mechelynck

Yakov Lerner wrote:
[...]

Something more on the topic.

- To print full termnifo capabilities of terminal 'xterm' from
file /usr/share/terminfo/x/xtern:
   infocmp xterm

- to list all terminals in the  terminfo database:
  ls -R /usr/share/terminfo/
  toe

Yakov



or maybe

ls -Rl /usr/share/terminfo > ~/termlist.txt

On my system, there are 2502 names, including 1010 aliases (i.e. soft links).


Best regards,
Tony.


Re: The meaning of nothing... ?

2006-09-30 Thread Yakov Lerner

On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:

Hi,

 to get all the keys of my keyboard working with vim I looked through
 my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
 and now a few addtional keys ( for example) do work correctly.

 So it seems, that the xterm256 definition, which I use, isn't
 completly defined in my terminfo database.

 Can I "dump" (or whatever the correct nameing is) the xterm256
 settings vim is using internally in a form which I can use to
 correct my (buggy?) terminfo database ?


Something more on the topic.

- To print full termnifo capabilities of terminal 'xterm' from
file /usr/share/terminfo/x/xtern:
   infocmp xterm

- to list all terminals in the  terminfo database:
  ls -R /usr/share/terminfo/
  toe

Yakov


Re: The meaning of nothing... ?

2006-09-30 Thread Yegappan Lakshmanan

On 9/30/06, Yegappan Lakshmanan <[EMAIL PROTECTED]> wrote:

Hi,

On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
>
>  I looked throught the term/terminfo/termcap/xterm/rxvt/* stuff and
>  have more questions than answers now.
>
>  Do you know a document or HowTo or something linke that which will
>  give me more closer informations about the term* handling in linux
>  and/or its terminal emulations ?
>

The following links may give you this information:

http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html
http://www.cs.utk.edu/~shuford/terminal_index.html



Another related site that contains information about terminals and
their configuration is:

http://vt100.net

- Yegappan



>  For example: Is it generally impossible to switch the cusor's _shape_
>  (not only its color!) from bar to block and back inside the console
>  version (gvim started as vim but with --enable-gui compile) of vim
>  with t_SI/t_EI ???
>
>  Thank you very much for you help in advance!
>  mcc
>


Re: The meaning of nothing... ?

2006-09-30 Thread Meino Christian Cramer
From: "Yegappan Lakshmanan" <[EMAIL PROTECTED]>
Subject: Re: The meaning of nothing... ?
Date: Sat, 30 Sep 2006 10:01:52 -0700

> Hi,
> 
> On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> >
> >  I looked throught the term/terminfo/termcap/xterm/rxvt/* stuff and
> >  have more questions than answers now.
> >
> >  Do you know a document or HowTo or something linke that which will
> >  give me more closer informations about the term* handling in linux
> >  and/or its terminal emulations ?
> >
> 
> The following links may give you this information:
> 
> http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html
> http://www.cs.utk.edu/~shuford/terminal_index.html
> 
> - Yegappan
> 
> >  For example: Is it generally impossible to switch the cusor's _shape_
> >  (not only its color!) from bar to block and back inside the console
> >  version (gvim started as vim but with --enable-gui compile) of vim
> >  with t_SI/t_EI ???
> >
> >  Thank you very much for you help in advance!
> >  mcc
> >
> >
> >
> 

Hi Yegappan !

 Thanks for the links ! :)

 Keep hacking!
 mcc




Re: The meaning of nothing... ?

2006-09-30 Thread Yegappan Lakshmanan

Hi,

On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:


 I looked throught the term/terminfo/termcap/xterm/rxvt/* stuff and
 have more questions than answers now.

 Do you know a document or HowTo or something linke that which will
 give me more closer informations about the term* handling in linux
 and/or its terminal emulations ?



The following links may give you this information:

http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html
http://www.cs.utk.edu/~shuford/terminal_index.html

- Yegappan


 For example: Is it generally impossible to switch the cusor's _shape_
 (not only its color!) from bar to block and back inside the console
 version (gvim started as vim but with --enable-gui compile) of vim
 with t_SI/t_EI ???

 Thank you very much for you help in advance!
 mcc





Re: The meaning of nothing... ?

2006-09-29 Thread A.J.Mechelynck

Meino Christian Cramer wrote:
[...]
Hi Tony, hi Yakov! 


 I looked throught the term/terminfo/termcap/xterm/rxvt/* stuff and
 have more questions than answers now.

 Do you know a document or HowTo or something linke that which will
 give me more closer informations about the term* handling in linux
 and/or its terminal emulations ?

 For example: Is it generally impossible to switch the cusor's _shape_
 (not only its color!) from bar to block and back inside the console
 version (gvim started as vim but with --enable-gui compile) of vim
 with t_SI/t_EI ???

 Thank you very much for you help in advance! 
 mcc


t_SI and t_EI are nonstandard codes added by Vim; IIUC they both default to 
empty. In the Windows console, the height (but not the width) of the cursor 
can be set with the 'guicursor' option; in Linux I don't know whether it is 
possible to change the cursor shape in the console, or how to do it. It will 
probably vary from terminal to terminal. My Gnome2 gvim, when started as 
"vim", always displays a block cursor in konsole, an underbar cursor in /dev/tty.



Best regards,
Tony.


Re: The meaning of nothing... ?

2006-09-29 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Subject: Re: The meaning of nothing... ?
Date: Fri, 29 Sep 2006 22:58:28 +0200

> Yakov Lerner wrote:
> > On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >>  to get all the keys of my keyboard working with vim I looked through
> >>  my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
> >>  and now a few addtional keys ( for example) do work correctly.
> >>
> >>  So it seems, that the xterm256 definition, which I use, isn't
> >>  completly defined in my terminfo database.
> >>
> >>  Can I "dump" (or whatever the correct nameing is) the xterm256
> >>  settings vim is using internally in a form which I can use to
> >>  correct my (buggy?) terminfo database ?
> > 
> > The closest form to what you ask is ':set terminfo '.
> > It does not dump terminal defs in terminfo format, no, but
> > it does show it in some format.
> > 
> > Yakov
> > 
> 
> E518: Unknown option: terminfo
> 
> I suppose you mean ":set termcap".
> 
> 
> Best regards,
> Tony.
> 

Hi Tony, hi Yakov! 

 I looked throught the term/terminfo/termcap/xterm/rxvt/* stuff and
 have more questions than answers now.

 Do you know a document or HowTo or something linke that which will
 give me more closer informations about the term* handling in linux
 and/or its terminal emulations ?

 For example: Is it generally impossible to switch the cusor's _shape_
 (not only its color!) from bar to block and back inside the console
 version (gvim started as vim but with --enable-gui compile) of vim
 with t_SI/t_EI ???

 Thank you very much for you help in advance! 
 mcc




Re: The meaning of nothing... ?

2006-09-29 Thread A.J.Mechelynck

Yakov Lerner wrote:

On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:

Hi,

 to get all the keys of my keyboard working with vim I looked through
 my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
 and now a few addtional keys ( for example) do work correctly.

 So it seems, that the xterm256 definition, which I use, isn't
 completly defined in my terminfo database.

 Can I "dump" (or whatever the correct nameing is) the xterm256
 settings vim is using internally in a form which I can use to
 correct my (buggy?) terminfo database ?


The closest form to what you ask is ':set terminfo '.
It does not dump terminal defs in terminfo format, no, but
it does show it in some format.

Yakov



E518: Unknown option: terminfo

I suppose you mean ":set termcap".


Best regards,
Tony.


Re: The meaning of nothing... ?

2006-09-29 Thread Yakov Lerner

On 9/29/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote:

Hi,

 to get all the keys of my keyboard working with vim I looked through
 my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
 and now a few addtional keys ( for example) do work correctly.

 So it seems, that the xterm256 definition, which I use, isn't
 completly defined in my terminfo database.

 Can I "dump" (or whatever the correct nameing is) the xterm256
 settings vim is using internally in a form which I can use to
 correct my (buggy?) terminfo database ?


The closest form to what you ask is ':set terminfo '.
It does not dump terminal defs in terminfo format, no, but
it does show it in some format.

Yakov


Re: The meaning of nothing... ?

2006-09-28 Thread A.J.Mechelynck

Meino Christian Cramer wrote:
[...]

 Thanks for your reply !
 I thought there would be a command ( "_ex_-command" as I have learned a
 mail before :O)), which dumps the tty settings in a
 terminfo/termcap-format already.

 I will look into the source and will see what I can use.

 Keep hacking!
 mcc


If there is one, I never heard of it. But I haven't searched very hard, except 
that by repeatedly forking a haystack upside-down, sooner or later you'll find 
some of the hidden needles ;-).



Best regards,
Tony.


Re: The meaning of nothing... ?

2006-09-28 Thread Meino Christian Cramer
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Subject: Re: The meaning of nothing... ?
Date: Fri, 29 Sep 2006 04:50:29 +0200

> Meino Christian Cramer wrote:
> > Hi,
> > 
> >  to get all the keys of my keyboard working with vim I looked through
> >  my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
> >  and now a few addtional keys ( for example) do work correctly.
> > 
> >  So it seems, that the xterm256 definition, which I use, isn't
> >  completly defined in my terminfo database.
> > 
> >  Can I "dump" (or whatever the correct nameing is) the xterm256
> >  settings vim is using internally in a form which I can use to
> >  correct my (buggy?) terminfo database ?
> > 
> >  Keep hacking!
> >  mcc
> > 
> > 
> 
> I suppose the builtin settings are found somewhere in the Vim source. After a 
> little searching around, I guess you might want to look at lines 936-1082 of 
> src/term.c dated 27-Aug-2006. See also src/term.h for the definition of the 
> symbols used. You may or may not have to do some reformatting to correct your 
> terminfo.
> 
> Note that the default is 'ttybuiltin' i.e., TRUE, because, it is said, "many 
> systems carry faulty termcap/terminfo databases".
> 
> 
> Best regars,
> Tony.
> 

Hi Tony,

 :) 

 Thanks for your reply !
 I thought there would be a command ( "_ex_-command" as I have learned a
 mail before :O)), which dumps the tty settings in a
 terminfo/termcap-format already.

 I will look into the source and will see what I can use.

 Keep hacking!
 mcc


 


Re: The meaning of nothing... ?

2006-09-28 Thread A.J.Mechelynck

Meino Christian Cramer wrote:

Hi,

 to get all the keys of my keyboard working with vim I looked through
 my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
 and now a few addtional keys ( for example) do work correctly.

 So it seems, that the xterm256 definition, which I use, isn't
 completly defined in my terminfo database.

 Can I "dump" (or whatever the correct nameing is) the xterm256
 settings vim is using internally in a form which I can use to
 correct my (buggy?) terminfo database ?

 Keep hacking!
 mcc




I suppose the builtin settings are found somewhere in the Vim source. After a 
little searching around, I guess you might want to look at lines 936-1082 of 
src/term.c dated 27-Aug-2006. See also src/term.h for the definition of the 
symbols used. You may or may not have to do some reformatting to correct your 
terminfo.


Note that the default is 'ttybuiltin' i.e., TRUE, because, it is said, "many 
systems carry faulty termcap/terminfo databases".



Best regars,
Tony.


Re: The meaning of nothing... ?

2006-09-28 Thread Meino Christian Cramer
From: Meino Christian Cramer <[EMAIL PROTECTED]>
Subject: The meaning of nothing... ?
Date: Fri, 29 Sep 2006 04:17:20 +0200 (CEST)

Hu.sorry.contents of the mail is correct...
But the subject is related to another mail I wrote. SORRY.

mcc


> Hi,
> 
>  to get all the keys of my keyboard working with vim I looked through
>  my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
>  and now a few addtional keys ( for example) do work correctly.
> 
>  So it seems, that the xterm256 definition, which I use, isn't
>  completly defined in my terminfo database.
> 
>  Can I "dump" (or whatever the correct nameing is) the xterm256
>  settings vim is using internally in a form which I can use to
>  correct my (buggy?) terminfo database ?
> 
>  Keep hacking!
>  mcc
> 


The meaning of nothing... ?

2006-09-28 Thread Meino Christian Cramer
Hi,

 to get all the keys of my keyboard working with vim I looked through
 my ~/.vimrc and found a setting ("nottybuiltin"), which I do revert
 and now a few addtional keys ( for example) do work correctly.

 So it seems, that the xterm256 definition, which I use, isn't
 completly defined in my terminfo database.

 Can I "dump" (or whatever the correct nameing is) the xterm256
 settings vim is using internally in a form which I can use to
 correct my (buggy?) terminfo database ?

 Keep hacking!
 mcc