Skip to content

Commit 70df36d

Browse files
committed
Rename to TerminalUserInterfaces
1 parent 0d3d13a commit 70df36d

File tree

11 files changed

+18
-12
lines changed

11 files changed

+18
-12
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "TUI"
1+
name = "TerminalUserInterfaces"
22
uuid = "408767e4-586b-40c7-9657-f9758988469a"
33
authors = ["Dheepak Krishnamurthy <me@kdheepak.com>"]
44
version = "0.1.0"

examples/barchart.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
23
using Random
34

45
function main()

examples/chess.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
23
using TUI: set, width , height , left , right , top , bottom , draw , inner
34

45
Base.@kwdef struct Chess

examples/grid.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
23
using Random
34

45
function main()

examples/list.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
33
using Random
44

55
function main()

examples/paragraph.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
23
using Random
34

45
function main()

examples/progressbar.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using TUI
1+
using TerminalUserInterfaces
2+
const TUI = TerminalUserInterfaces
23
using REPL
34
using InteractiveUtils
45

src/TUI.jl renamed to src/TerminalUserInterfaces.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module TUI
1+
module TerminalUserInterfaces
22

33
using REPL: Terminals
44
using TERMIOS

src/buffer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ function background(buf::Buffer, rect::Rect, color::Crayons.Crayon)
9797
end
9898
end
9999

100-
draw(widget, r::Rect) = draw(widget, r, TUI.current_buffer())
100+
draw(widget, r::Rect) = draw(widget, r, current_buffer())

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const HEIGHT = Ref{Int}()
66
const MODE = Ref{Symbol}(:default)
77

88
function terminal_size(io)
9-
ws = TUI.IOCTL.ioctl(io, TUI.IOCTL.TIOCGWINSZ)
9+
ws = IOCTL.ioctl(io, IOCTL.TIOCGWINSZ)
1010
# width, height
1111
return (Int(ws.ws_col), Int(ws.ws_row))
1212
end

0 commit comments

Comments
 (0)