zsh-users
 help / color / mirror / code / Atom feed
* termcap
@ 2001-09-05 12:32 Will Yardley
  2001-09-05 13:25 ` termcap Clint Adams
  2001-09-05 14:03 ` termcap Oliver Kiddle
  0 siblings, 2 replies; 6+ messages in thread
From: Will Yardley @ 2001-09-05 12:32 UTC (permalink / raw)
  To: Zsh Users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 923 bytes --]

so this may be a dumb question, but i haven't been able to find any
documentation that addresses this. 

i installed my own terminfo directory in $HOME/share/terminfo
in bash, i can do:

[sepia]$ echo $TERMINFO
/home/will/share/terminfo
[sepia]$ export TERM=xterm-xfree86
[sepia]$ echo $TERM
xterm-xfree86

but in zsh:
sepia% echo $TERMINFO
/home/will/share/terminfo
sepia% export TERM=xterm-xfree86
zsh: can't find termcap info for xterm-xfree86
ˆ‰%

this machine doesn't have zsh so i'm running zsh from $HOME/bin/
did i need to tell zsh the location of terminfo when i compiled it? do i
just need to set different environment variables?

if termcap is needed, i have a current copy of that in $HOME/etc/termcap

i'm having the same problem with tcsh, so i'm assuming there's just some
variable i need to set.

-w
 
-- 
Sintax error in config file! (line 378)
aborted!

PGP Public Key:
http://infinitejazz.net/will/pgp/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: termcap
  2001-09-05 12:32 termcap Will Yardley
@ 2001-09-05 13:25 ` Clint Adams
  2001-09-05 19:28   ` termcap Will Yardley
  2001-09-05 14:03 ` termcap Oliver Kiddle
  1 sibling, 1 reply; 6+ messages in thread
From: Clint Adams @ 2001-09-05 13:25 UTC (permalink / raw)
  To: Zsh Users

> this machine doesn't have zsh so i'm running zsh from $HOME/bin/
> did i need to tell zsh the location of terminfo when i compiled it? do i
> just need to set different environment variables?
> 
> if termcap is needed, i have a current copy of that in $HOME/etc/termcap
> 
> i'm having the same problem with tcsh, so i'm assuming there's just some
> variable i need to set.

bash treats the TERMINFO parameter as special, and resets the terminal every
time it changes.  zsh (and tcsh, I assume) don't currently know about this
variable.  Other than the zsh/terminfo module, zsh is dealing with
termcap or termcap emulation.

On the other hand, zsh does react when the TERM parameter is changed.
I have zsh linked against ncurses, which knows about TERMINFO even though
zsh doesn't, and if I export TERMINFO, then change TERM, it will happily
find the terminfo definitions in $TERMINFO.

Thus, I think you are either not exporting TERMINFO to the environment
or the library which is providing zsh with tgetent() and friends
doesn't care about that variable.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: termcap
  2001-09-05 12:32 termcap Will Yardley
  2001-09-05 13:25 ` termcap Clint Adams
@ 2001-09-05 14:03 ` Oliver Kiddle
  2001-09-05 14:21   ` termcap Will Yardley
  2001-09-05 14:24   ` termcap Bart Schaefer
  1 sibling, 2 replies; 6+ messages in thread
From: Oliver Kiddle @ 2001-09-05 14:03 UTC (permalink / raw)
  To: Will Yardley; +Cc: Zsh Users

Will Yardley wrote:
> 
> so this may be a dumb question, but i haven't been able to find any
> documentation that addresses this.

We perhaps ought to mention that zsh error message in the FAQ.

> if termcap is needed, i have a current copy of that in $HOME/etc/termcap

Have you done export TERMCAP=~/etc/termcap so that it can find that
then?

I recently had problems with zsh on a Linux box understanding iris-ansi
terms which was solved by fixing the termcap entry so I'd assume it
isn't using terminfo.

Oliver

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: termcap
  2001-09-05 14:03 ` termcap Oliver Kiddle
@ 2001-09-05 14:21   ` Will Yardley
  2001-09-05 14:24   ` termcap Bart Schaefer
  1 sibling, 0 replies; 6+ messages in thread
From: Will Yardley @ 2001-09-05 14:21 UTC (permalink / raw)
  To: Zsh Users

Oliver Kiddle wrote:
> Will Yardley wrote:
 
> > if termcap is needed, i have a current copy of that in $HOME/etc/termcap

> Have you done export TERMCAP=~/etc/termcap so that it can find that
> then?

ahh ok - i had exported all 3, and even in the right order, but i was
exporting them all at once; ie:
export TERMCAP TERMINFO TERM
doing:
export TERMCAP=~/etc/termcap
and so on works great.  otherwise login shells weren't working properly
- just subsequent shells.

w

-- 
Sintax error in config file! (line 378)
aborted!

PGP Public Key:
http://infinitejazz.net/will/pgp/


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: termcap
  2001-09-05 14:03 ` termcap Oliver Kiddle
  2001-09-05 14:21   ` termcap Will Yardley
@ 2001-09-05 14:24   ` Bart Schaefer
  1 sibling, 0 replies; 6+ messages in thread
From: Bart Schaefer @ 2001-09-05 14:24 UTC (permalink / raw)
  To: Oliver Kiddle, Will Yardley; +Cc: Zsh Users

On Sep 5,  3:03pm, Oliver Kiddle wrote:
}
} I recently had problems with zsh on a Linux box understanding iris-ansi
} terms which was solved by fixing the termcap entry so I'd assume it
} isn't using terminfo.

On all versions of RedHat linux at least up to 6.2, zsh uses termcap
unless configured with --enable-curses-terminfo.  I expect this is true
on several other linux distributions as well (except probably Debian).

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: termcap
  2001-09-05 13:25 ` termcap Clint Adams
@ 2001-09-05 19:28   ` Will Yardley
  0 siblings, 0 replies; 6+ messages in thread
From: Will Yardley @ 2001-09-05 19:28 UTC (permalink / raw)
  To: Zsh Users

Clint Adams wrote:
> On the other hand, zsh does react when the TERM parameter is changed.
> I have zsh linked against ncurses, which knows about TERMINFO even
> though zsh doesn't, and if I export TERMINFO, then change TERM, it
> will happily find the terminfo definitions in $TERMINFO.

one more dumb question.  if i want to link zsh to the copy of ncurses in
my home directory instead of the machine's, but i still want to use the
remainder of the machine's include files, how do i need to configure
zsh?

i have ncurses 5.2 installed in ~/include and ~/lib with the terminfo
stuff in ~/share/terminfo

w

-- 
Sintax error in config file! (line 378)
aborted!

PGP Public Key:
http://infinitejazz.net/will/pgp/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-05 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-05 12:32 termcap Will Yardley
2001-09-05 13:25 ` termcap Clint Adams
2001-09-05 19:28   ` termcap Will Yardley
2001-09-05 14:03 ` termcap Oliver Kiddle
2001-09-05 14:21   ` termcap Will Yardley
2001-09-05 14:24   ` termcap Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).