mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-08 05:27:35 +02:00
adding dummy with-raw-io and get-terminal-width defs
This commit is contained in:
parent
ac6d0124c4
commit
7b936e4190
1 changed files with 4 additions and 1 deletions
|
@ -27,8 +27,11 @@
|
|||
(chibi ast)))
|
||||
(else
|
||||
(begin
|
||||
(define (with-raw-io port thunk)
|
||||
(with-stty '(not icanon isig echo) thunk port))
|
||||
(define (get-terminal-width . x) 80)
|
||||
(define-syntax protect
|
||||
(syntax-rules () (protect . x) (guard . x)))
|
||||
(syntax-rules () ((protect . x) (guard . x))))
|
||||
(define (print-exception exn . o)
|
||||
(let ((out (if (pair? o) (car o) (current-error-port))))
|
||||
(write exn out)
|
||||
|
|
Loading…
Add table
Reference in a new issue