in reply to 80x25 ASCII text art in terminal

I've seen this before, it depends on the terminal.

I can run this on my system (ArchLinux) in an xterm, and it works properly.

#!/usr/bin/perl use strict; use warnings; $SIG{__WARN__} = sub { die @_ }; $| = 1; print "x" x 2000; sleep 5;

It fills an 80x25 screen with 'x' and does not go to the next line until after it exits. It is in fact why I use xterms, because others I've tried have the problem that was complained about.

Replies are listed 'Best First'.
Re^2: 80x25 ASCII text art in terminal
by harangzsolt33 (Deacon) on Jun 18, 2023 at 13:01 UTC
    Hmm... so it seems that this is something that depends on the terminal and the system. Well, thank you.

      Yes, there are many, MANY different terminals and terminal emulators out there. Don't forget, the modern'ish terminal you see on your modern flat panel screen is basically an emulator of an old school serial (or parallel or network or $other) terminal.

      Some of these has local computing options, many were of the type "connect to the mainframe in the basement", basically glorified teletype machines that used a screen instead of paper. These all started as proprietary developments of the different mainframe manufacturers (IBM, HP, Cray, ...), with cross-compatibility coming later as an afterthought.

      But even compatible systems often had their hardware (later software) quirks. And it's these quirks that are still in existance on modern terminal emulators. Because they need to be compatible of the old software.

      Often, your best bet is to use a terminal library like ncurses or curses to help you position text on screen. These libraries know a lot of the tricks of the trade and can handle all the required workarounds for you.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP