Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L ldpl
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lartu
  • ldpl
  • Merge requests
  • !19

Merged
Created Mar 13, 2019 by Lartu@lartu🐕Maintainer

include the \ in escape codes

  • Overview 1
  • Commits 3
  • Changes 1

Created by: dvkt

I was having issues with using \n and friends, and I think it's because the tokenizer wasn't passing something along.

Sorry about the coding style, you can test this using this program:

$ cat escape.ldpl
PROCEDURE:
display "\t\e[33mi\e[32mn \e[31mt\e[34me\e[35mc\e[36mh\e[37mn\e[1m\e[31mi\e[32mc\e[33mo\e[34ml\e[35mo\e[36mu\e[37mr\e[0m\r\n" 

On master:

$ ldpl escape.ldpl
LDPL Error: unknown escape sequence on a VECTOR access.

Should work better in a modern terminal with this patch.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: github/fork/dvkt/escape-codes