How shall I find out all the terminal types that can work?What's the difference between various $TERM...
A Journey Through Space and Time
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Why are only specific transaction types accepted into the mempool?
What exactly is the parasitic white layer that forms after iron parts are treated with ammonia?
Find original functions from a composite function
Is it possible to do 50 km distance without any previous training?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
What defenses are there against being summoned by the Gate spell?
Set-theoretical foundations of Mathematics with only bounded quantifiers
Validation accuracy vs Testing accuracy
How to type dʒ symbol (IPA) on Mac?
Email Account under attack (really) - anything I can do?
Download, install and reboot computer at night if needed
What do you call a Matrix-like slowdown and camera movement effect?
Can I interfere when another PC is about to be attacked?
What would happen to a modern skyscraper if it rains micro blackholes?
How to report a triplet of septets in NMR tabulation?
Patience, young "Padovan"
whey we use polarized capacitor?
New order #4: World
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How can I fix this gap between bookcases I made?
How can I hide my bitcoin transactions to protect anonymity from others?
How shall I find out all the terminal types that can work?
What's the difference between various $TERM variables?How can I print text using any one of the 256 colors that the terminal allows?How to find out the escape sequence my keyboards sends to terminal?How does a terminal emulator workfind out the size of open terminalWhere can I find the speciation that a terminal emulator must meet?How to find out what floods the terminal?Reset $PATH Variable to Default Kali settingDownloading and installing Meteor via DockerfileHow to find the docker name/hash so that it can be exported?Where can I find all the possible Go templates?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
How shall I find out all the terminal types that can work?
On Lubunu 18.04, The followings work
$ TERM=xterm top
$ TERM=vt100 top
but the following don't:
$ TERM=lxterminal top
'lxterminal': unknown terminal type.
$ TERM= top
TERM environment variable not set.
The following returns nothing, which is said to give all the terminal types that can work
$ toe
In a docker container, the following works
$ sudo docker exec -t 851 top
$ sudo docker exec -t 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
TERM=xterm
HOME=/root
but why do the following don't
$ sudo docker exec 851 top
TERM environment variable not set.
$ sudo docker exec 851 bash -c "TERM=xterm top"
top: failed tty get
$ sudo docker exec 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
HOME=/root
Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?
Thanks.
terminal docker
add a comment |
How shall I find out all the terminal types that can work?
On Lubunu 18.04, The followings work
$ TERM=xterm top
$ TERM=vt100 top
but the following don't:
$ TERM=lxterminal top
'lxterminal': unknown terminal type.
$ TERM= top
TERM environment variable not set.
The following returns nothing, which is said to give all the terminal types that can work
$ toe
In a docker container, the following works
$ sudo docker exec -t 851 top
$ sudo docker exec -t 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
TERM=xterm
HOME=/root
but why do the following don't
$ sudo docker exec 851 top
TERM environment variable not set.
$ sudo docker exec 851 bash -c "TERM=xterm top"
top: failed tty get
$ sudo docker exec 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
HOME=/root
Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?
Thanks.
terminal docker
You're missing the-tflag when you calledsudo docker exec 851 bash -c "TERM=xterm top"
– Stephen Harris
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
Because you missed the-tafterexec. So no terminal was associated with theexec. Sotopsaid "no terminal"
– Stephen Harris
21 hours ago
add a comment |
How shall I find out all the terminal types that can work?
On Lubunu 18.04, The followings work
$ TERM=xterm top
$ TERM=vt100 top
but the following don't:
$ TERM=lxterminal top
'lxterminal': unknown terminal type.
$ TERM= top
TERM environment variable not set.
The following returns nothing, which is said to give all the terminal types that can work
$ toe
In a docker container, the following works
$ sudo docker exec -t 851 top
$ sudo docker exec -t 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
TERM=xterm
HOME=/root
but why do the following don't
$ sudo docker exec 851 top
TERM environment variable not set.
$ sudo docker exec 851 bash -c "TERM=xterm top"
top: failed tty get
$ sudo docker exec 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
HOME=/root
Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?
Thanks.
terminal docker
How shall I find out all the terminal types that can work?
On Lubunu 18.04, The followings work
$ TERM=xterm top
$ TERM=vt100 top
but the following don't:
$ TERM=lxterminal top
'lxterminal': unknown terminal type.
$ TERM= top
TERM environment variable not set.
The following returns nothing, which is said to give all the terminal types that can work
$ toe
In a docker container, the following works
$ sudo docker exec -t 851 top
$ sudo docker exec -t 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
TERM=xterm
HOME=/root
but why do the following don't
$ sudo docker exec 851 top
TERM environment variable not set.
$ sudo docker exec 851 bash -c "TERM=xterm top"
top: failed tty get
$ sudo docker exec 851 env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=851fbf59c6da
HOME=/root
Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?
Thanks.
terminal docker
terminal docker
edited 21 hours ago
Tim
asked 21 hours ago
TimTim
28.4k79269491
28.4k79269491
You're missing the-tflag when you calledsudo docker exec 851 bash -c "TERM=xterm top"
– Stephen Harris
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
Because you missed the-tafterexec. So no terminal was associated with theexec. Sotopsaid "no terminal"
– Stephen Harris
21 hours ago
add a comment |
You're missing the-tflag when you calledsudo docker exec 851 bash -c "TERM=xterm top"
– Stephen Harris
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
Because you missed the-tafterexec. So no terminal was associated with theexec. Sotopsaid "no terminal"
– Stephen Harris
21 hours ago
You're missing the
-t flag when you called sudo docker exec 851 bash -c "TERM=xterm top"– Stephen Harris
21 hours ago
You're missing the
-t flag when you called sudo docker exec 851 bash -c "TERM=xterm top"– Stephen Harris
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
Because you missed the
-t after exec. So no terminal was associated with the exec. So top said "no terminal"– Stephen Harris
21 hours ago
Because you missed the
-t after exec. So no terminal was associated with the exec. So top said "no terminal"– Stephen Harris
21 hours ago
add a comment |
1 Answer
1
active
oldest
votes
The ncurses-bin package includes toe, which lists terminal descriptions.
As for which work, that's accomplished by reading the documentation for the terminal, which should tell you what it does.
toereturns nothing. How does it explain why some works, some don't?
– Tim
21 hours ago
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should runtoe -a? (3)man toesays "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?
– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510970%2fhow-shall-i-find-out-all-the-terminal-types-that-can-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The ncurses-bin package includes toe, which lists terminal descriptions.
As for which work, that's accomplished by reading the documentation for the terminal, which should tell you what it does.
toereturns nothing. How does it explain why some works, some don't?
– Tim
21 hours ago
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should runtoe -a? (3)man toesays "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?
– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
add a comment |
The ncurses-bin package includes toe, which lists terminal descriptions.
As for which work, that's accomplished by reading the documentation for the terminal, which should tell you what it does.
toereturns nothing. How does it explain why some works, some don't?
– Tim
21 hours ago
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should runtoe -a? (3)man toesays "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?
– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
add a comment |
The ncurses-bin package includes toe, which lists terminal descriptions.
As for which work, that's accomplished by reading the documentation for the terminal, which should tell you what it does.
The ncurses-bin package includes toe, which lists terminal descriptions.
As for which work, that's accomplished by reading the documentation for the terminal, which should tell you what it does.
answered 21 hours ago
Thomas DickeyThomas Dickey
54.2k5106179
54.2k5106179
toereturns nothing. How does it explain why some works, some don't?
– Tim
21 hours ago
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should runtoe -a? (3)man toesays "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?
– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
add a comment |
toereturns nothing. How does it explain why some works, some don't?
– Tim
21 hours ago
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should runtoe -a? (3)man toesays "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?
– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
toe returns nothing. How does it explain why some works, some don't?– Tim
21 hours ago
toe returns nothing. How does it explain why some works, some don't?– Tim
21 hours ago
1
1
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
you gotta read the manual page, which answers this "toe returns nothing". That's not the documentation for your terminal.
– Thomas Dickey
21 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should run
toe -a? (3) man toe says "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?– Tim
20 hours ago
Thanks. (1) How can I find out what is my terminal and what is the documenation for my terminal? (2) by reading the manpage, do you mean I should run
toe -a? (3) man toe says "With no options, toe lists all available terminal types by primary name with descriptions", what does it mean by "all available terminal types by primary name with descriptions"?– Tim
20 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
Actually none of the answers are very good, but this question gives some hints. There are other questions asking related things, but I don't see any that are useful.
– Thomas Dickey
11 hours ago
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f510970%2fhow-shall-i-find-out-all-the-terminal-types-that-can-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You're missing the
-tflag when you calledsudo docker exec 851 bash -c "TERM=xterm top"– Stephen Harris
21 hours ago
I am not. That is for "Why doesn't prefixing a command with TERM=xterm work in a container while it does in Lubuntu?"
– Tim
21 hours ago
Because you missed the
-tafterexec. So no terminal was associated with theexec. Sotopsaid "no terminal"– Stephen Harris
21 hours ago