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

Bell character support #12

Closed
tg-x opened this issue Dec 6, 2016 · 1 comment
Closed

Bell character support #12

tg-x opened this issue Dec 6, 2016 · 1 comment

Comments

@tg-x
Copy link

tg-x commented Dec 6, 2016

From the documentation:

{2:ctrls Control characters}

These are taken to be characters in the ranges [0x00-0x1f] ({b C0}) and
[0x80-0x9f] ({b C1}), and [0x7f] (BACKSPACE). This is the
{{: http://unicode.org/reports/tr44/#General_Category_Values}Unicode
general category} {b Cc}.

As control characters directly influence the cursor positioning, they
cannot be used to create images.

Since the bell character (0x07) does not change the cursor position, it should be allowed in images,
and/or there should be a bell attribute that prints it.

@tg-x tg-x changed the title Allow bell character in images Bell character support Dec 6, 2016
@pqwy
Copy link
Owner

pqwy commented Dec 8, 2016

No, breaks the model. You could detect the rendering strategy, but couldn't control when exactly the bell rings. Bell is a side-effect in the terminal protocol.[*] It's not that it doesn't change the cursor position; it simply doesn't exist in the plane.

A bell attribute has no meaning.

What I might conceivably do, is add a function to Term to ring the bell and set the title. But in the meantime, nothing prevents you from printing 0x07 to ring a bell. You can do that precisely because it does not change the cursor position.

[*] Strictly, all characters are side effects in the terminal protocol. But some are less uniform than the others.

@pqwy pqwy closed this as completed Dec 8, 2016
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

2 participants