4main = do Just buf <- newBuffer 40
7 setString buf 20 "Hello world!"
8 printLn !(bufferData buf)
9 Just buf2 <- resizeBuffer buf 50
11 printLn !(bufferData buf2)
13 putStrLn "Writing to file"
14 Right h <- openFile "test.buf" WriteTruncate
15 writeBufferToFile h buf (size buf)
18 putStrLn "Reading from file twice"
19 Just buf3 <- newBuffer 80
21 Right h <- openFile "test.buf" Read
22 buf3 <- readBufferFromFile h buf3 (size buf3)
24 Right h <- openFile "test.buf" Read
25 readBufferFromFile h buf3 (size buf3)
28 printLn !(bufferData buf3)
30 -- Small buffer, tests issue #3828
31 Just small <- newBuffer 3
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list