-
Notifications
You must be signed in to change notification settings - Fork 0
/
ls.rb
34 lines (29 loc) · 818 Bytes
/
ls.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true
require_relative '../lib/natty-ui'
ui.h1 'NattyUI: Print In Columns', space: 2
LOREM = <<~IPSUM.lines(chomp: true)
Lorem ipsum dolor sit
amet, consectetur adipisicing
elit, sed do eiusmod tempor
incididunt ut labore et
dolore [red]magna[/] aliqua. Ut
enim ad minim veniam, quis
nostrud exercitation ullamco
laboris nisi ut aliquip ex
ea commodo [b]consequat[/b]. Duis
aute irure [bold green]dolor[/fg] in[/]
reprehenderit in voluptate
velit [underline]esse cillum[/] dolore eu
fugiat nulla pariatur.
Excepteur sint occaecat
cupidatat non proident,
sunt in culpa qui officia
deserunt mollit anim id
est laborum.
IPSUM
ui.h2 'Compact Display'
ui.ls LOREM, glyph: 1
ui.space
ui.h2 'Traditional Display'
ui.ls LOREM, glyph: 1, compact: false
ui.space