Subscribe

2012-10-23 Thread Axel Svensson
Hello Axel Svensson svenssona...@gmail.com :-)
You are now subscribed



-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Meta key in PicoLisp program

2012-10-23 Thread Thorsten Jolitz


Hi List, 

how would I write a 
- Meta/Alt key
- AltGr key

in a PicoLisp program?

E.g. if I want to write 
AltV (M-V or M-S-v in Emacs)
CtrlALTV (C-M-V or C-M-S-v in Emacs)

instead of something like this (CtrlV):

,---
| (^V (insChar (key)))
`---

-- 
cheers,
Thorsten


-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


bug in daemon?

2012-10-23 Thread Axel Svensson
Hi!

I noticed the 'daemon function does a fine job distinguishing builtin
C functions from lisp functions. However, it redefines the function to
evaluate all arguments, rather than letting the function decide for
itself. Here is an example transcript:

: (setq a 3)
- 3
: (while (gt0 (dec 'a)) (prinl @))
2
1
- 1
: (daemon 'while (prinl while called))
- (@ (prinl while called) (pass $268284695))
: (setq a 3)
- 3
: (while (gt0 (dec 'a)) (prinl @))
3
while called
# infinite loop
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Meta key in PicoLisp program

2012-10-23 Thread Alexander Burger
Hi Thorsten,

 AltV (M-V or M-S-v in Emacs)
 CtrlALTV (C-M-V or C-M-S-v in Emacs)
 
 instead of something like this (CtrlV):

Unfortunately, this is not directly possible.

Alt/Meta key combinations have no representation in ASCII or UTF-8.
Instead, they are generated as events by the runtime system, where key
events may have certain bits set for modifier keys.

As such, they are very system-dependent. External libraries like
'termcap/terminfo' or 'curses' can be used to handle them.

BTW, this is one of the reasons why the PicoLisp line editor uses a
'vi'-style user interface. It needs only ASCII-keys.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe