Skip to content

Commit

Permalink
Update default writeLine function in AbstractMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-paul committed Feb 15, 2018
1 parent 5bb376c commit e0c15bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AbstractMenu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ These functions must be implemented for all subtypes of AbstractMenu.
- `pick(m::AbstractMenu, cursor::Int)`
- `cancel(m::AbstractMenu)`
- `options(m::AbstractMenu)`
- `writeLine(buf::IOBuffer, m::AbstractMenu, idx::Int, cur::Bool)`
- `writeLine(buf::IOBuffer, m::AbstractMenu, idx::Int, cur::Bool, term_width::Int)`
## Optional Functions
Expand Down Expand Up @@ -70,7 +70,7 @@ options(m::AbstractMenu) = error("unimplemented")
# This function must be implemented for all menu types. It should write
# the option at index `idx` to the buffer. If cursor is `true` it
# should also display the cursor
function writeLine(buf::IOBuffer, m::AbstractMenu, idx::Int, cur::Bool)
function writeLine(buf::IOBuffer, m::AbstractMenu, idx::Int, cur::Bool, term_width::Int)
error("unimplemented")
end

Expand Down

0 comments on commit e0c15bb

Please sign in to comment.