Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Start micro Under PuTTY Set For 256-Color Mode #1204

Open
6XGate opened this issue Oct 1, 2018 · 6 comments
Open

Unable to Start micro Under PuTTY Set For 256-Color Mode #1204

6XGate opened this issue Oct 1, 2018 · 6 comments

Comments

@6XGate
Copy link

6XGate commented Oct 1, 2018

Description of the problem or steps to reproduce

  1. Set PuTTY to use putty-256color as its Terminal-type string, under Connection > Data (in Terminal Details)
  2. Connect to a system via SSH with PuTTY,
  3. Run micro with or without any file path.

Specifications

Commit hash: 1856891 (1.4.1)
OS: Ubuntu 18.04 (under WSL or as the main OS)
Terminal: PuTTY, using putty-256color as its Terminal-type string.

@jackwilsdon
Copy link

What output do you get when trying to start micro? I can't reproduce the issue.

@MarcusE1W
Copy link

I just got my longstanding terminal problem resolved by using the latest nightly build 1.4.2-dev 29. You could try that.

@6XGate
Copy link
Author

6XGate commented Feb 20, 2019

Sorry, it's returning:

terminal entry not found
Fatal: Micro could not initialize a screen.

@phorce1
Copy link

phorce1 commented Sep 14, 2020

18 months later I have this same issue with the latest 2.07 installed tonight on a headless server I use through Putty.

It appears to work if I ssh in from a WSL2 Debian session. I guess it's time to start phasing out putty.

Well, both Putty AND screen cause the problem. In ssh if I go into my existing screen session with 'screen -dR" micro fails in the exact same way. It is not a combination of both, it is either or. If one is using screen or if one is connecting with putty then micro fails.

@zyedidia
Copy link
Owner

zyedidia commented Sep 14, 2020

Maybe Putty doesn't report the TERM correctly? I have found KiTTY works better (it's a fork of Putty). Also, you can try setting the option xterm to true. This will make micro believe that your terminal is "normal" despite what it might be reporting. You can run micro -xterm true, and then set the option globally once micro is running (or you can place the setting in ~/.config/micro/settings.json).

@mrx23dot
Copy link

mrx23dot commented Feb 4, 2022

KiTTY works great with micro.
Could we make micro -xterm true default or auto detect?
It makes font more readable.

Home directory config file is cumbersome, I have create dir tree, then set it up for all users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants