about Crimson Editor

Dec 16, 2006 27 Replies

Anybody know how to insert a formfeed character (ctrl/L, ascii code



12) into a text document?

John



In article , snipped-for-privacy@highNOTlandTHIStechnologyPART.com (known to some as John Larkin) scribed...

Normally, this could be done by holding down the 'Alt' key, and typing the three-digit decimal code for the desired ASCII character (in this case, 012). However, I've tried it, and it doesn't seem to work in CrimsEd.

I suppose you could write the file, save it, and then open it back up with a hex editor to add the necessary control characters, but it would be a bit of a hassle.

If you find a solution, I'd like to hear about it.

Happy tweaking.

Dr. Anton T. Squeegee, Director, Dutch Surrealist Plumbing Institute (Known to some as Bruce Lane, KC7GR) http://www.bluefeathertech.com -- kyrrin a/t bluefeathertech d-o=t calm "Salvadore Dali\'s computer has surreal ports..."

OK, this works:

Hold down the left ALT key. Type 012 on the numeric keypad, not the regular number keys. Release alt.

I'd been trying other things, like alt 1 2 , but apparently it's very pickey. The leading 0 made the difference, so thanks for that piece of the puzzle.

I'm programming in assembly, and need the formfeed to page my listings. I'd been using EDIT (the pseudo-DOS thing that comes with Windows) for, well, too long, and decided to step up to Crimson so my mouse roller would work, and stuff like that. In EDIT, it's just ctrl/p ctrl/l.

This whole issue is a profound mess:

formatting link

but then most software-related things are.

John

Or "step up" to a real editor like UltaEdit-32 ;-)

I don't know how I'd handle all these nasty HSpice-to-PSpice library conversions without it.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

I use VIM and it does fine for all my programming needs :)

Think VI + graphical interface - all the classic VI commands work, but you can configure, select etc., without having to know them. Free, too.

Cheers

PeteS

[snip]

I gave up VI when I was a kid ;-)

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

To the consternation of many I have used (and like) all of VI, emacs and Xemacs ;)

Cheers

PeteS

I've done about $50 million worth of stuff with EDIT, so Crimson should hold me for another decade or so. I'm not by nature an early adopter for stuff like this. If I want to manipulate text, and not just type it, I write a PowerBasic program. All the kids use PERL, which I understand is another of those write-only languages they seem to favor.

The assembler I use is a dog, so I wrote pre and post-processors to rationalize the input syntax and the listing format, using mostly old DEC Macro-11 conventions, including a listing with a table of contents.

thing: equ 4 ; is abominable!

thing = 4 ; is right!

Time to take Mo out for a latte. I might even have one myself.

John

Computers were analog when you "were a kid" ;-)

-- Service to my country? Been there, Done that, and I've got my DD214 to prove it. Member of DAV #85.

Michael A. Terrell Central Florida

Naaaah! I learned Fortran and FAP on this machine in the summer of

1960...

The solid-state IBM 7090 is the most powerful data processing system now coming off production lines at International Business Machines Corporation. The fully-transistorized system has computing speeds six times faster than those of its vacuum-tube predecessor, the IBM 709, and seven and one-half times faster than those of the IBM 704. Announced in December, 1958, the first 7090 was installed in December,

1959.

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | I love to cook with wine. Sometimes I even put it in the food.

What, a 1 MHz clock? Or was it even that fast? Remember, some IBM products had a hole in the side to use a crank when the electricity went out. ;-)

Service to my country? Been there, Done that, and I\'ve got my DD214 to prove it. Member of DAV #85. Michael A. Terrell Central Florida

Are you referring to the Abacus :)

"I\'m never wrong, once i thought i was, but was mistaken" Real Programmers Do things like this. http://webpages.charter.net/jamie_5

I use WinEdit - I don't need to manually insert form feeds - the editor does that itself, and adds a header line, when I ask it to print the file.

Peter Bennett, VE7CEI peterbb4 (at) interchange.ubc.ca new newsgroup users info : http://vancouver-webpages.com/nnq GPS and NMEA info: http://vancouver-webpages.com/peter Vancouver Power Squadron: http://vancouver.powersquadron.ca

And NUM LOCK has to be on!

What's wrong with letting me type ctrl/L?

John

Actually, I was talking about old cash registers that could run on electricity, or be hand cranked. They tracked sales in 12 departments, so they were very simple computers.

Service to my country? Been there, Done that, and I\'ve got my DD214 to prove it. Member of DAV #85. Michael A. Terrell Central Florida

As usual, it depends. You could try just typing Ctrl-L; that works in dos with copy con lpt when you need to eject a page from your printer.

Or, if you're in Windoze, you could go start/programs/accessories/ character map or maybe system/character map, and copy it from there and paste it into your document.

Alt-numpad keys might still work on some systems - you used to be able to, while the comp. is accepting keystrokes, hold the alt key down and enter any arbitray keyboard code, but that's at the BIOS level, so it has to be three digits because the parser isn't very smart. In this case, it'd be Alt 0-1-2, i.e., hold down the alt key, and press the numbers in sequence, then release the alt key. Wait a sec - if that's hex 12, then you'd type alt 0-1-8, because alt-number keystroke nubmers are in decimal, I'm pretty sure.

Good Luck! Rich

You'll have to take that up with the scriptkiddies who wrote your editor. it's always worked for me.

But, doesn't your assembler have paging controls for the list output? Like, assembler directives or something?

Good Luck! Rich

How would it know where I want the page breaks?

John

That doesn't work. ctrl/p ctrl/l works in EDIT.

Sure, but that's a pita.

Right. Alt-0-1-2 works *if* you use the numeric pad and *if* numlock is set.

John

Sure, but I like to be able to print the source file on fanfold paper, too. That way I can review it even when it still has 1,200 assembly errors.

John

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required