micro icon indicating copy to clipboard operation
micro copied to clipboard

"No suitable screen available" when running 64-bit micro in windows 7

Open neurohunter opened this issue 8 years ago • 10 comments

Description of the problem or steps to reproduce

Immediately after startup micro shows "No suitable screen available" error and exits.

Specifications

micro 1.3.1 Compiled on August 08, 2017 Commit hash: d5afc0 OS: Windows 7 64-bit Terminal: CMD (both stand-alone and within ConEmu)

neurohunter avatar Aug 14 '17 07:08 neurohunter

Same error - x64 and x86 ran in mintty (default Cygwin terminal emulator), works in cmd.

martinrotter avatar Sep 11 '17 05:09 martinrotter

Same issue here: micro 1.3.1 64bit OS: Windows 10 Terminal: cmd and powershell

jeernest avatar Sep 11 '17 08:09 jeernest

Same issue here: micro 1.3.2 | 64bit & 32bit OS: Windows 10 Terminal: cmd and PowerShell

Legio1221 avatar Sep 18 '17 14:09 Legio1221

OK, I found solution. Check you environment variables. On one computer I found $env:TERM variable set to "xterm". After removing the variable it started to work. On second computer I had $env:MICRO_TRUECOLOR set to 1, after removing the variable it started to work too.

jeernest avatar Sep 19 '17 09:09 jeernest

Removing that does work, but it doesn't seem to use truecolor when it's not set

ForsakenHarmony avatar Nov 02 '17 20:11 ForsakenHarmony

It's been almost a year now, any updates on this issue? I'm having the same problem with 1.4.0: no problems using micro on cmd but "no suitable screen available" on Babun/mintty. Un-setting TERM just makes micro hang and fiddling around with MICRO_TRUECOLOR has no effect whatsoever. Screencap here (streamable)

EDIT: as zyedidida correctly tagged, tcell does not support termios on Windows and will error out.

EDIT 2: even cmd now supports 24-bit colors but apparently tcell does not on Windows?

Baldomo avatar Jul 01 '18 11:07 Baldomo

This isn't a solution for all cases, but if you are using mintty and you are using the windows build of micro, then you can simply do 'winpty micro' and it will work except for mouse input.

You can also use an alias in your shell startup script: alias micro='winpty micro'

And to use it as your git editor: git config --global -e core.editor 'winpty micro'

katedickey avatar Oct 03 '18 22:10 katedickey

I have this problem as well. I'm running 64-bit Windows 10.

Even though I don't know a perfect solution, I can confirm that the workaround posted by @jeernest is valid. In PowerShell, that would be the following:

$Env:TERM=''

I think it's more convenient to do the following:

notepad $profile (make sure to create $profile if it doesn't exist)

...and then add the aforementioned variable assignment to the profile. This way, every time you start PowerShell, micro will work without the error No suitable screen available.

MarxSoul55 avatar Apr 06 '19 05:04 MarxSoul55

same on Server 2019

kort3x avatar May 29 '19 22:05 kort3x

Is this still observed with a recent version of micro?

dmaluka avatar Apr 14 '24 23:04 dmaluka