-
Notifications
You must be signed in to change notification settings - Fork 82
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
Ponysay not work proppely into a TTY's #1
Comments
opt4: Patch Linux VT to support \e[38;5;Xm and \e[48;5;Xm colouring (256 colours) and add support for Block Elements characters. |
opt5: now, remplacing aggety w/ getty and set TERM-with-256-colors may in teory work too |
You can check for 256 color support on any term with |
tput colors mate-terminal: 8 urxvt: 256 I would not relay on "tput colors" as only urxvt and Linux VT prints the correct value. |
Yikes. Those are some pretty bad results. I suppose I shouldn't be surprised because I've had code in my .bashrc for a while that just sets |
Yeah, this is a frequent problem. (not for just TTY and for many other consoles) Many people are unable to get MOTD ponies because of this. But unfortunately I doubt I can do much about it. If nopony can do opt4 or opt2, we need to go for opt3. |
I'm for opt4 … it would be awesome. |
That would be awesome. After all, there's no reason a Linux terminal running on top of a framebuffer shouldn't be able to do 256 colours. You may run into the same problem that fbterm did, however. Apparently the escape sequence conflicts with one that Linux uses for something else. I wonder what the ponies would look like with 8 colours. I'm afraid they'd look dark and muddy, since there's no support for high intensity background colours. Either way, I could definitely patch img2xterm for 8 color output. |
Patching img2xterm for 8 colour output and with blankspaces instead of block elements should be better that cowsay, so that's a good start. |
I voted for the spaces instead of bocks Examples: ttf-celestia, monspace, currier new, consolas (have the minimum movement of bocks) in xfce4-terminal, are major noticeable if compares on the fly (changin see changing see and then) |
If there is any way to get user overriden colours in Linux VT (definied by \e]Pnrrggbb), |
I have begun working on the Linux VT (can be pixelperfect without changes) to make it ponysay compatible after which I will be working on adding more features. |
Idea: Make ponies out of jp2a. (it generates ASCII art in colour that renders well on tty) And make a fallback option for certain terminals and print those ponies instead. |
I'm working on a program to convert the .pony files to Linux VT suitable files. The pony files will use OSI P instead of CSI m for colouring, in effect 24-bit colours will be possible. Should the ponies by but in another catalogue than ponies/ or use another file name extension than .pony? |
if size in KB ar so big maybe the mane6 and Celestia and Luna the only for TTy; I wanna try these "fix", wath is the git for cloning and testing :) ? |
I'm not done yet, but soon. I pose as soon as it is up. Screen size. 600 height fits 37,5 lines, but I think the default height is 400 and |
Linux TTY can [apparently] use the used block drawing elements. It is only the colouring that is problematic, so the screen size while not be a problem. However, it is not 100 % pixel perfect. |
I am almost done, the only thing missing know, is a tool to converting the ANSI sequences, The problems you get with TTY is: The tools that exists is available at: ASCII ponies may be better at the current state of Linux VT, but this is soon complete. |
at this momment: work perfect and finaly, Swatebell change my PS1 colors, and the pony reset the tty (like clean/clear command) but I can live With them ask: wath is the command or the resollution that you use for converting images into *.ponys?? |
To support 256 colours (and actually any 24-bit colour), the problem have to use two spaces on the colour palette, ponysay needs to clear the screen when printing in TTY, otherwise it is probable that ponies will scroll the screen while And for the question: I use util-say, which you find on my github-account: https://github.com/maandree/util-say Stuff I will add to util-say: |
I think we'll close this thread, we have done everything a (sane) pony can do (in reasonable amount of time). |
Yes. It has been reported to work well on PuTTY. |
It works on PuTTY, but it could be better. |
Here's a PuTTY screenshot: http://dev.kuroyama.us/~kfiresun/pics/derpy_putty.png |
I installed PuTTY and tried it earlier today, and it look like this: Installed on Arch from the 'extra' repository. |
@maandree Did you enable 256 colours option? |
No, ut it looks like it is no, it is the block elements that does not work. |
@maandree Did you enable... UTF-8? It's not default in PuTTy. And btw, the ttyponies works as long you have KMS, say intel/nouveau drivers. But it breaks horribly if you have the nvidia-blob driver since it don't support KMS. |
How does it look without KMS? Why the hay is UTF-8 not default? |
I can provide a photo tomorrow when I have access to that computer. I only run free stuff at home. @maandree Putty... is like that, at least in windows. Might be font-issue in your PuTTy? |
Yepp, it was a font-issue, works pixel perfectly with unifont as the font. |
Sad pony in my tty at work: http://i.imgur.com/VlCV6.jpg Using the nvidia-blob driver. |
Ahh, same problem as when switch between TTY:s. I am planning to "solve" this with a program called It will select be nearest CSI m colour when change the palette. |
Reopening this then. But I'm using the proprietary nvidia drivers and it works flawlessly on tty (both mingetty and agetty) for me. |
I forgot, this was TTY2, can test TTY1 tomorrow. @erkin Can you try TTY2 and see if you get the same? |
I think it is time for a wiki for issue encountered in this thread. |
Some improvements is still required to make the ponies look as good as possible, now they look like zebras. fortune | ponysay -f cheerilee | tty2colourfultty -p Skip -p tty2colourfultty -e -p I guess I'll work on making it print prettier ponies, and then I'll replace the current tty ponies. I'll also write a script of creating double sized (spaces only) ponies with 8 or 16 colours. |
There are problems with resetting colours in tty. After the pony is printed, the last used colour becomes the new default colour. |
What command are you running? |
I also have this issue, it works at least with the following commands: |
Actualy the program have many changes, I imagine that a version bump mayble? I think...is possible detect if you change tty's? if yes: why not store the las ponysay command used if change and if swithced again to the pony-tty-related relaunch these "stored" pony again, this can "fix" the tty-change probles bya rerun the program, this is possible if exist a form to detect if change from tty's... |
I'm not quite following what you are saying. |
Stupid translator.... 1- Actualy the code comppared w 0.8 have changes (like the naightmare bugg and tty display), I ask if is possible bunp fRom 0.8 to a 0.9 version? 2- When you swithch to a tty exist a variable that say in wath tty are you? underestandable now??? (stupid translators) |
I think v0.9 has those updates, but that nobody has updated the package OK, now I understand the second part. But i don't think there is a variable for that. /dev/tty and /dev/tty0 are But to restore the pony we must have a daemon (if you can't create unzebra -e < ponies/file.pony | ponysay2ttyponysay | tty2colourfultty -e > ttyponies/file.pony |
I test now the ponysay XD 1- Append to my .bashrc for run in the begin "exec ponysay $(uname -a)" make display for 1 sec and autologin-out from my session (in tty) |
It may be best to truncate the ponies on the height in TTY, just as we (always) do with the width. |
e'yup, buth the "text/think" maybe become inreadable, but can by fixed oving thi to the botom instead the upper for the thuncation (?) in de height. Reproduce the other problem: apend in .bashrc in the first line after the PS1 |
So far, they are reported to work on PuTTY, agetty and mingetty. Where does the problem persist? |
KMS is required in TTY for good colours, and it is and the ponies looses quality when ponies position on the screen changes, or when the TTY is reopened. I think we should close this issue and make it as partially unsolvable. |
Alright. I'm closing it as |
Bug: Buggy implementation of Ponysay for TTY's
Reproduce:
login in a TTY (in this example TTY1)
run ponysay lol
profit
info: agetty, x86_64, Archlinux, version ponysay 0.6-1
suggestion how to fix:
opt1: makin a "fallback pony in assci for shoy in a TTY's for see if runing in tty you can use the command [ ! -s $DISPLAY ]
opt2: Making the ponys showables in TTY's
opt3: Restrict the use only in a X11, Wayland environment
The text was updated successfully, but these errors were encountered: