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;
}







-4















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.










share|improve this question

























  • 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











  • 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


















-4















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.










share|improve this question

























  • 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











  • 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














-4












-4








-4








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 21 hours ago







Tim

















asked 21 hours ago









TimTim

28.4k79269491




28.4k79269491













  • 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











  • 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



















  • 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











  • 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

















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










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer
























  • toe returns 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 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












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
});


}
});














draft saved

draft discarded


















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









1














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.






share|improve this answer
























  • toe returns 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 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
















1














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.






share|improve this answer
























  • toe returns 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 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














1












1








1







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










answered 21 hours ago









Thomas DickeyThomas Dickey

54.2k5106179




54.2k5106179













  • toe returns 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 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



















  • toe returns 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 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

















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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...