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

It would be nice to have octal escape sequences for characters and strings #6618

vicuna opened this issue Oct 19, 2014 · 2 comments


None yet
1 participant
Copy link

commented Oct 19, 2014

Original bug ID: 6618
Reporter: @johnwhitington
Status: closed (set by @damiendoligez on 2017-03-01T14:14:06Z)
Resolution: fixed
Priority: low
Severity: feature
Version: 4.02.1
Fixed in version: 4.03.0
Category: lexing and parsing
Tags: junior_job
Monitored by: lelf @whitequark

Bug description

Today I had to type out some terminal escape codes, and happened to be using a source where they are listed in octal.

It would be nice to be able to write '\o033' or "Make it \o033[1mBOLD\o033[0m". (we already have octal for integers). Obviously we have to check it's in range.


This comment has been minimized.

Copy link

commented Dec 17, 2014

Comment author: @damiendoligez

Octal, yuck.

But we have it for integers, so for the sake of uniformity why not.

As for checking the range, ocamllex can do it: [0-3][0-7][0-7]


This comment has been minimized.

Copy link

commented Mar 1, 2017

Comment author: @damiendoligez

This was implemented by #112 ( #112 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.