Handbook
Glossary
wrap-result ( string maxwidth -- string' )
Vocabulary
openai
.
ui
Inputs
string
a
string
maxwidth
an
object
Outputs
string'
a
string
Word description
Takes a long string from the response and wraps it according to the repsonse pane width.
Definition
USING:
fonts
math
ui.text
wrap.strings
;
IN:
openai.ui
:
wrap-result
( string maxwidth -- string' )
monospace-font
" "
text-width
>integer
/
wrap-string
;