LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-01-2019, 03:54 PM   #1
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
mlterm uses xterm terminfo/termcap


While I was having small problems with xterm on -current I decided to give mlterm from SBo a run.

One problem I noted is that, by default, the terminal defaults to xterm, even though I see mlterm* entries in /usr/share/terminfo/m

Not really a problem, but wondering why the native terminfo is not used when it's available.
 
Old 03-02-2019, 08:48 AM   #2
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
Do you mean that TERM is set to xterm?
 
Old 03-02-2019, 09:48 AM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Yes. The man page says mlterm defaults to a terminal type of xterm, but further on I see the following:

Code:
This configuration file [edit: $HOME/.mlterm/termcap]
determines the behaviors of mlterm that should match the
definition of terminfo and termcap. In principle, this file
should not be edited and, instead, you should choose a proper
value for TERM variable (i.e., proper terminfo/termcap definition)
which meets mlterm's behavior. (Since mlterm can behave as a
xterm/kterm to some extent, TERM=kterm/TERM=xterm should give
acceptable results.)
mlterm can behave as a xterm to some extent?

If TERM=xterm only partially meets mlterm's capabilities, and terminfo definitions for mlterm exist, why not use them instead? Slightly confused.

Last edited by Gerard Lally; 03-02-2019 at 11:42 AM.
 
Old 03-02-2019, 10:37 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by Gerard Lally View Post
mlterm can behave as a xterm to some extent?

If TERM=xterm only partially meets mlterm's behaviour, and terminfo definitions for mlterm exist, why not use them instead? Slightly confused.
Yes, "to some extent" doesn't cut it. It's just wrong.
 
Old 03-02-2019, 01:56 PM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by GazL View Post
Yes, "to some extent" doesn't cut it. It's just wrong.
Getting a terminal working consistently and reliably across several machines (local Slackware and remote NetBSDs) is an ongoing bone of contention for me. I was fairly satisfied with Xterm till -current, but that turned out to be a minor issue. I do wish terminals like mlterm and rxvt-unicode-256color would just install and use their own terminfo definitions. Too much messing around to get them right.

Last edited by Gerard Lally; 03-02-2019 at 05:02 PM.
 
Old 03-03-2019, 09:44 AM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I think mlterm uses TERM=xterm by default intentionally.

Code:
$ mlterm --help | grep term=
 -y/--term=value    : terminal type for TERM variable [xterm]
This link claims.

Quote:
The terminal should report itself as "xterm", so as not to confuse Solaris or other Unix variants that get very unhappy when TERM=mlterm.
http://www.scottro.net/qnd/qnd-mlterm.html
 
1 members found this post helpful.
Old 03-03-2019, 10:39 AM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Original Poster
Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Thanks orbea. That link answers the question.

Last edited by Gerard Lally; 03-03-2019 at 11:05 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminfo/termcap not found FiL Linux - Enterprise 3 11-28-2022 12:02 PM
[SOLVED] xterm - termcap or terminfo Gerard Lally Slackware 2 05-16-2017 04:50 PM
questions about terminfo and termcap (and alternate srceen) colorsh Linux - Software 0 09-06-2011 11:11 PM
TERM, TERMCAP, and TERMINFO linux-who? Linux - General 1 06-14-2010 11:53 PM
termcap or terminfo gary.chan Linux - Software 0 06-14-2004 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration