Skip to content

Bogus escape sequences sent to terminalย #608

@hramrach

Description

@hramrach

Describe the bug
Bogus escape sequences sent to terminal

Setup
Please complete the following information along with version numbers, if applicable.

  • OS openSUSE Leap 16.0
  • Shell bash
  • Terminal Emulator urxvt echo $TERM
    rxvt-unicode
  • Terminal Multiplexer n/a
  • Locale en_US.UTF-8

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/charmbracelet/lipgloss.git
  2. cd libgloss
  3. go run examples/layout/main.go

Source Code
none

Expected behavior
no garbage sent to terminal

Screenshots

sh-5.2$ go run examples/layout/main.go
                                                                                                                         
  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ                                                          
  โ”‚ Lip Gloss โ”‚โ”‚ Blush โ”‚โ”‚ Eye Shadow โ”‚โ”‚ Mascara โ”‚โ”‚ Foundation โ”‚                                                          
  โ”˜           โ””โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                       
                                                                                                                         
   Lip Gloss                                                                                                             
     Lip Gloss            Style Definitions for Nice Terminal Layouts                                                    
       Lip Gloss          โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                                         
         Lip Gloss        From Charm โ€ข https://github.com/charmbracelet/lipgloss                                         
           Lip Gloss                                                                                                     
                                                                                                                         
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ”‚                                                  โ”‚็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ”‚     Are you sure you want to eat marmalade?      โ”‚็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ”‚                                                  โ”‚็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ”‚                 Yes        Maybe                 โ”‚็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ”‚                                                  โ”‚็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซโ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซ                       
  ็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช็Œซๅ’ช                       
                                                                                                                         
  Citrus Fruits to Try           โ”‚  Actual Lip Gloss Vendors      โ”‚                                                      
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€           โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€      โ”‚                                                      
  โœ“ Grapefruit                   โ”‚    Glossier                    โ”‚                                                      
  โœ“ Yuzu                         โ”‚    Claireโ€˜s Boutique           โ”‚                                                      
    Citron                       โ”‚  โœ“ Nyx                         โ”‚                                                      
    Kumquat                      โ”‚    Mac                         โ”‚                                                      
    Pomelo                       โ”‚  โœ“ Milk                        โ”‚                                                      
                                 โ”‚                                โ”‚                                                      
                                                                                                                         
                                                                                                                         
       The Romans learned from       Medieval quince preserves,       In 1524, Henry VIII, King                          
       the Greeks that quinces        which went by the French        of England, received a                             
      slowly cooked with honey       name cotignac, produced in       โ€œbox of marmaladeโ€ from                            
    would โ€œsetโ€ when cool. The         a clear version and a          Mr. Hull of Exeter. This                           
    Apicius gives a recipe for       fruit pulp version, began        was probably marmelada, a                          
     preserving whole quinces,         to lose their medieval         solid quince paste from                            
    stems and leaves attached,       seasoning of spices in the       Portugal, still made and                           
    in a bath of honey diluted       16th century. In the 17th        sold in southern Europe                            
          with defrutum: Roman          century, La Varenne           today. It became a                                 
       marmalade. Preserves of       provided recipes for both        favourite treat of Anne                            
       quince and lemon appear       thick and clear cotignac.        Boleyn and her ladies in                           
      (along with rose, apple,                                        waiting.                                           
    plum and pear) in the Book                                                                                           
          of ceremonies of the                                                                                           
             Byzantine Emperor                                                                                           
               Constantine VII                                                                                           
             Porphyrogennetos.                                                                                           
                                                                                                                         
                                                                                                                         
   STATUS  Ravishing                                                          UTF-8  ๐Ÿฅ Fish Cake                        
                                                                                                                         
sh-5.2$ 332;1R

See garbage after prompt ^^^

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions