'Clear' command not working.
I was working in a screen session and clear was working fine. When I exited out of the screen session, clear would give me this error.
Code:
'rxvt-unicode': unknown terminal type. Code:
#!/bin/bash I have tired updating, removing then reinstalling, and purging and reinstalling. CTRL+l works to clear the screen also. |
Follow the instructions on these links, check if the works
https://dimit.me/blog/2015/01/28/urx...m-support-ssh/ http://alemani.com/urxvt-unknown-ter...type-with-ssh/ |
I have already googled and looked at these sites. They fix the problem of starting a ssh session to a server and then the 'clear' command being a issue. I'm having the issue with the 'clear' command not working on the host machine.
I also just checked if one of my bash scripts would work and it seems the 'tput' command doesn't work either, returns the same error. |
Okay, it's better to use absolute path in the script and check again.
/usr/bin/clear |
Same error code. It works fine with other terminal emulators, I think its a problem with urxvt in some way.
|
Is "echo $TERM" shows the same output from script as it is from outside? You might need to define the TERM variable in the script itself.
|
The value of $TERM is 'rxvt-unicode' same as within a script. But it happens when i'm just in a terminal emulator too.
|
Have you manually change the $TERM in your .basrc or any of the initialization scripts like .profile, .bash_profile? The terminal identification string should always be sent by the terminal emulator you are using, because this sometimes causes conflict.
Do check the below link and read from the section "Finding appropriate terminfo(5) definitions", this might help https://sanctum.geek.nz/arabesque/tag/terminfo/ |
I have not changed the $TERM variable, ever. And the $TERM value is as it should be, 'rxvt-unicode' for the urxvt terminal emulator. Correct me if i'm wrong.
|
Okay, Do check the below link and read from the section "Finding appropriate terminfo(5) definitions", this might help
https://sanctum.geek.nz/arabesque/tag/terminfo/ |
Also try installing ncurses-term package if it's not there. This will add the definition files so it shouldn't show anymore unknown terminal error.
|
I read the page that was linked, and I feel it just made things more confusing. Here is the command I used to see the definition of terms.
Code:
And just a update...I tried to ssh into the host machine from urxvt and got the same error when trying to use the 'clear' command. When I use screen, ssh or not, I can use 'clear' and 'tput'. And when I check the value of $TERM I get 'screen' |
I read the page that was linked, and I feel it just made things more confusing. Here is the command I used to see the definition of terms.
Code:
And just a update...I tried to ssh into the host machine from urxvt and got the same error when trying to use the 'clear' command. When I use screen, ssh or not, I can use 'clear' and 'tput'. And when I check the value of $TERM I get 'screen' |
All times are GMT -5. The time now is 03:24 PM. |