Mercurial > core / lisp/lib/cli/pkg.lisp
changeset 586: |
7ce855f76e1d |
parent: |
5540a3e32ba1
|
child: |
926d95e5fdc7 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Sun, 11 Aug 2024 01:53:06 -0400 |
permissions: |
-rw-r--r-- |
description: |
net/fetch upgrades, fixes, net/err -> net/condition |
1 ;;; cli.lisp --- cli programming api and utils 3 ;; This package contains a simple api and macros for building lisp CLI 8 ;; - inspired by: clingon, uiop 10 ;; Basic assumptions at runtime: 11 ;; - running in a POSIX-compliant shell 12 ;; - output stream supports UTF-8 14 ;; TODO 2023-10-14: install-ast, install-thunk, proc-args, etc should 15 ;; return IR types - CLI-IR THUNK and CLI-IR respectively. 17 ;; TODO 2023-10-14: rename cli-ast to cli-ir, install-ast to 21 (defpackage :cli/shell 24 (:export :*shell* :*shell-directory* :*shell-input*)) 28 (:export :*default-global-env-var-names* :*default-local-env-var-names* :exec-path-list 29 :program-list :find-exe :ld-library-path-list :concat-env-table 37 :.ris :reset-to-initial-state 38 ;; CSI sequences | cursor control 42 :.cub :cursor-backward 43 :.cnl :cursor-next-line 44 :.cpl :cursor-preceding-line 45 :.cha :cursor-horizontal-absolute 46 :.cup :cursor-position 47 :.vpa :vertical-position-absolute 48 :.vpr :vertical-position-relative 49 :.vpb :vertical-position-backward 50 :.scosc :save-cursor-position 51 :.scorc :restore-cursor-position 52 :.ed :erase-in-display :erase-below :erase-above :erase :erase-saved-lines 53 :.el :erase-in-line :erase-right :erase-left :erase-line 54 :.sgr :select-graphic-rendition 55 :.dsr :device-status-report 56 ;; DEC private mode set and reset 57 :.decset :dec-private-mode-set 58 :.decrst :dec-private-mode-reset 59 :show-cursor :hide-cursor 60 :use-alternate-screen-buffer :use-normal-screen-buffer 67 (defpackage :cli/prompt 73 (defpackage :cli/progress 79 :*progress-bar-enabled* 80 :start-progress-display 81 :finish-progress-display 83 :uncertain-size-progress-bar 85 :with-progress-maybe)) 87 (defpackage :cli/spark 94 (:use :cl :std :cli/progress :cli/spark) 95 (:export :load-acl-repl :start-rl-repl)) 98 (:use :cl :std :cli/env) 99 (:export :run-emacs :run-emacsclient :org-store-link))