[fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread Dusan Halicky
Hi. I have simple console application: program test; var s : string; begin while s 'q' do readln(s); end. I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was surprised that history of commands is working out of the box (by pressing arrow UP). I thought it is done

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread David W Noon
On Wed, 1 Sep 2010 19:30:07 +0200, Dusan Halicky wrote about [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux: I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was surprised that history of commands is working out of the box (by pressing arrow UP).

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread Dusan Halicky
I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was surprised that history of commands is working out of the box (by pressing arrow UP). That is standard behaviour for most modern shells. The readln() function has nothing to do with libreadline. The problem you are seeing is

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread Michael Van Canneyt
On Wed, 1 Sep 2010, Dusan Halicky wrote: I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was surprised that history of commands is working out of the box (by pressing arrow UP). That is standard behaviour for most modern shells. The readln() function has nothing to do with

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread Dusan Halicky
If you run the program twice, you'll see that you can scroll back even to what you typed in the first run of the program; This is clear proof that it is not the program itself which does that. Ok. This somehow convinced me. Can I achieve the same thing in bash?

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread Michael Van Canneyt
On Wed, 1 Sep 2010, Dusan Halicky wrote: If you run the program twice, you'll see that you can scroll back even to what you typed in the first run of the program; This is clear proof that it is not the program itself which does that. Ok. This somehow convinced me. Can I achieve the same

[fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
Hi! For a project with wireless chip cards (MiFare) I'm using a reader which is accessed via the PC/SC interface. Did anybody write a Pascal unit to translate the C header files? Thanks Hansi ___ fpc-pascal maillist -

Re: [fpc-pascal] PC/SC

2010-09-01 Thread Michael Van Canneyt
On Wed, 1 Sep 2010, Johann Glaser wrote: Hi! For a project with wireless chip cards (MiFare) I'm using a reader which is accessed via the PC/SC interface. Did anybody write a Pascal unit to translate the C header files? Is this for linux or windows ? Michael.

Re: [fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
Hi! For a project with wireless chip cards (MiFare) I'm using a reader which is accessed via the PC/SC interface. Did anybody write a Pascal unit to translate the C header files? Is this for linux or windows ? I'm working on Linux. Thanks Hansi

Re: [fpc-pascal] PC/SC

2010-09-01 Thread DaWorm
Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start. If you don't mind me asking, which Mifare reader supports PC/SC? I use both chipcard and Mifare readers, but hadn't seen a PC/SC Mifare

Re: [fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
Hi! Am Mittwoch, den 01.09.2010, 16:27 -0400 schrieb DaWorm: Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start. Google pointed me to a Delphi component at

[fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Bihar Anwar
A Newbie question :-) Is it possible to fill TreeView (tree is naturally recursive) with a nonrecursive/iterative thinking paradigm? Are there some good examples regarding this matter in the Internet? I post this question in FPC mailing list because my question actually about filling a tree in

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Vannus
i probably shouldn't open my mouth, as i don't quite understand the question... however FRED from the game Freespace let you design missions using a treeview. It involved following a tree like |- when 'Enemy Cargo ship' is 'attacked' | \- then 'enemy support ships' do 'jump in' |- when 'Enemy

Re: [fpc-pascal] PC/SC

2010-09-01 Thread Michael Van Canneyt
On Wed, 1 Sep 2010, Johann Glaser wrote: Hi! Am Mittwoch, den 01.09.2010, 16:27 -0400 schrieb DaWorm: Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the PC/SC Lite used there, but it could be a helpful start. Google pointed me to a

Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

2010-09-01 Thread David W Noon
On Wed, 1 Sep 2010 21:17:04 +0200, Dusan Halicky wrote about Re: [fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux: If you run the program twice, you'll see that you can scroll back even to what you typed in the first run of the program; This is clear proof that

Re: [fpc-pascal] PC/SC

2010-09-01 Thread Johann Glaser
Hi! Am Mittwoch, den 01.09.2010, 22:55 +0200 schrieb Michael Van Canneyt: On Wed, 1 Sep 2010, Johann Glaser wrote: Hi! Am Mittwoch, den 01.09.2010, 16:27 -0400 schrieb DaWorm: Project Jedi has translations for Delphi. I don't know how easily they could be used for Linux and the

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Bihar Anwar
On 2 September 2010 3:53:34 AM, Vannus wrote: i probably shouldn't open my mouth, as i don't quite understand the question... however FRED from the game Freespace let you design missions using a treeview. Just to make my question clear, for example, I can fill a TreeView control with

Re[2]: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread José Mejuto
Hello FPC-Pascal, Wednesday, September 1, 2010, 11:20:57 PM, you wrote: BA Just to make my question clear, for example, I can fill a TreeView control with BA particular Registry keys by enumerating registry keys recursively and put them BA in the TreeView control; then for performance reason,