Skip to content

ASCII escape sequences not working #17

@marodriguezs

Description

@marodriguezs

ASCII escape sequences not working

OS: Windows
Julia Version 1.12.5

Small example:

function iv(o); println("\e[7m"*o*"\e[0m"); end                # inverse video  
function ivblink(o); println("\e[7;5m"*o*"\e[0m"); end         # iv+blink
function hb(o); println("\e[32m"*o*"\e[0m"); end               # half brigth
function blink(o); println("\e[5m"*o*"\e[0m"); end             # blinking
function bold(o); println("\e[1m"*o*"\e[0m"); end              # bold face

E=Char(27)
function home(); println(E*"[H"); end                          # home cursor
function iv1(o); println(E*"[7m"*o*E*"[0m"); end                # inverse video 

home()
print("\e[2J"); println()            # clear screen
iv("julide"); println()
ivblink("julide"); println()
hb("julide"); println()
blink("julide"); println()
bold("julide"); println()
iv1("julide"); println()

Expected behavior: highlighted text.

output:


<img width="201" height="167" alt="Image" src="https://github.com/user-attachments/assets/32e6fed9-a145-4a6b-aac7-e21cb4271fe5" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions