![]() |
![]() |
#1 |
Aug 2006
2×29×103 Posts |
![]()
I've recently moved from Windows to Linux (XP and Xubuntu, respectively). I'm looking for replacements for all the things I had in Windows, most of which were fairly easy to find. One that I haven't found is a good shell (terminology?) for Pari. The Windows binary had color coding, QuickEdit (highlight + Enter to copy, right-click to paste), advanced line editing* (up arrow to duplicate past lines, left arrow to move into and edit text), and high-resolution graphics (ploth). How do I get these under Linux?
I've managed to compile Pari here, so if I just need to recompile with different options that would be fine. If I need an program on top of Pari that would be fine as well. (I've had no luck with pari-emacs, but since I'm not familiar with emacs that's probably not the best way to go anyway.) * The Windows binary wouldn't allow Home and End to move to the start and end of a line -- I'd like this feature as well. |
![]() |
![]() |
![]() |
#2 | |
A Sunny Moo
Aug 2007
USA (GMT-5)
186916 Posts |
![]() Quote:
![]() Oh, wait--I just got an idea about that. What terminal program are you using? I'm using gnome-terminal, which is reasonably well full-featured, but if memory serves I think Xubuntu uses a more barebones terminal emulator by default. It may not support all of the features you described, which though inherent to PARI would definitely require the shell to at least have basic support for them. I think Xubuntu comes with gnome-terminal, too, as an alternate terminal emulator, so you may want to try that and see if it fixes things. |
|
![]() |
![]() |
![]() |
#3 |
"Nancy"
Aug 2002
Alexandria
9A316 Posts |
![]()
When you compile Pari/GP, make sure you have the "readline" library (and development package, i.e. the .h header files etc) installed. Pari's configure script should mention finding readline. Then you have pretty flexible command line editing.
Alex |
![]() |
![]() |
![]() |
#4 |
Aug 2006
2·29·103 Posts |
![]()
Got it. I didn't install it with readline, let me try that now.
Edit: does Pari+readline do tab completion as well? Say, what text editors are good in Linux? I don't want to restart the vi/emacs wars -- I just want a customizable editor with syntax highlighting, nothing special. (Paren matching and find/replace regexes would be nice, too.) Last fiddled with by CRGreathouse on 2009-03-20 at 02:34 |
![]() |
![]() |
![]() |
#5 | |
A Sunny Moo
Aug 2007
USA (GMT-5)
3·2,083 Posts |
![]() Quote:
Whenever I have a command-line-only environment I mostly use nano/pico. I've never gotten around to learning vi, or even becoming reasonably comfortable with emacs, so I can't truly compare them as far as power and breadth of features goes. However, it is (at least as far as I can tell) the easiest of the command-line-based Linux text editors to learn and use (especially if you're already familar with the DOS edit.com). Hope this helps! ![]() |
|
![]() |
![]() |
![]() |
#6 | |
Aug 2006
2×29×103 Posts |
![]()
OK, I've downloaded gedit and edited one of the .lang files to suit my needs. If I stick to this I'm going to have to learn the syntax well enough to create a gp.lang file.
Quote:
Last fiddled with by CRGreathouse on 2009-03-20 at 04:40 |
|
![]() |
![]() |
![]() |
#7 | |
Aug 2006
2·29·103 Posts |
![]() Quote:
lib64readline5 libedit2 libjline-java libreadline5 readline-common (of which only the last two should matter) in hopes of finding the readline that Pari wants. But it fails to find readline when given Code:
./Configure --tune --with-gmp --with-qt --with-readline Code:
#ifdef READLINE_LIBRARY # include <readline.h> #else # include <readline/readline.h> #endif main() { char *s = readline("?"); } Code:
locate readline.h |
|
![]() |
![]() |
![]() |
#8 |
"Nancy"
Aug 2002
Alexandria
2,467 Posts |
![]()
Is there a "readline-devel" package you can install? It should have the headers.
And yes, readline does tab-completions, on function names anyway. It also has searchable history, yank buffer, etc... it's a bit like emacs for command lines. For a text-mode editor, I like "joe," mostly because it uses more-or-less the same command sequences as the Turbo Pascal IDE did, which I used a lot before switching to Linux. Alex |
![]() |
![]() |
![]() |
#9 | |
Feb 2007
100001112 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#10 | |
A Sunny Moo
Aug 2007
USA (GMT-5)
3×2,083 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#11 | |
Aug 2006
175616 Posts |
![]() Quote:
I Googled for the source and found http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html which I was able to install (shockingly*) with the completely standard ./configure / make / make install. This did actually produce the desired readline.h; I'm installing now, so I'll know soon if it worked. * Of the ~10 or so math programs I've recently made from source, this is the first that didn't take any special tricks like ./configure --with-stuff --tune --melt-computer=no |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is best in life? Is it PARI/GP? | JM Montolio A | Lounge | 11 | 2018-03-08 06:26 |
LLL in GP/Pari | paul0 | Programming | 2 | 2015-11-17 13:04 |
PARI vs GAP | skan | Miscellaneous Math | 0 | 2012-12-16 00:13 |
pari | devarajkandadai | Programming | 21 | 2012-08-31 18:08 |
64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |