replacement for quad-CC

Queries and discussions related to migrating from APLX

replacement for quad-CC

Postby shallit on Mon Sep 02, 2019 10:47 am

Looks like quad-CC has disappeared (it used to be in APLX). What's the easiest replacement?
shallit
 
Posts: 8
Joined: Fri Oct 27, 2017 12:25 am

Re: replacement for quad-CC

Postby Morten|Dyalog on Tue Sep 03, 2019 7:28 am

It seems to me that ⎕CC performs a number of quite different functions in APLX, some of which are very specific to the GUI environment. There is no direct equivalent in Dyalog APL, although there are ways to achieve most of what I can see in the APLX reference manual. Can you tell us a little more about what you are trying to do?
User avatar
Morten|Dyalog
 
Posts: 355
Joined: Tue Sep 09, 2008 3:52 pm

Re: replacement for quad-CC

Postby shallit on Wed Sep 04, 2019 1:52 pm

I had been using it to do stuff like the following:

print the letters ABC, then three backspaces, then --- (three minus signs) over what used to be the ABC.

Should I be using ⎕ARBOUT instead?
shallit
 
Posts: 8
Joined: Fri Oct 27, 2017 12:25 am

Re: replacement for quad-CC

Postby Morten|Dyalog on Thu Sep 05, 2019 7:19 am

That does sound like ⎕ARBOUT, yes. Of course, you pretty much need a teletype for that to work, on a screen display the minuses will just overwrite the first letters. There is a feature in Dyalog APL that I consider to be something of an "Easter Egg" - but it can only resolve known overstrikes like underscored letters:

Code: Select all
      chars←⎕FMT 'ABC∆',(4⍴⎕UCS 8),'___|' ⍝ ⎕UCS 8 is backspace
      ⍴chars
1 4
      chars
ⒶⒷⒸ⍋
      ⎕FMT 'ABC',(3⍴⎕UCS 8),'---'
---

If the above displays as circled letters rather than underscores on your screen, that's because you are not using the APL385 Unicode font. Unicode versions of Dyalog APL output underscores as circled letters (because Unicode has no underscored chars) and the font renders them as underscored.
User avatar
Morten|Dyalog
 
Posts: 355
Joined: Tue Sep 09, 2008 3:52 pm

Re: replacement for quad-CC

Postby Veli-Matti on Thu Sep 05, 2019 1:43 pm

Oh, this reminds me of the ancient times with mainframes, where you could do some nice tricks with quad output and backspace (e.g. showing the process information in the session). Not to mention the first time I played with APL on paper terminal, and that was the only way to get the overstrike characters.
Had to test:
      ∆bs←{⎕FMT ⍺,((≢⍺)⍴⎕UCS 8),⍵}

(⎕A,'⊥⊤⎕⎕⎕⎕⎕○○○○*∘~∆∆∇∇∨∧0[/\,∊') ∆bs (⎕A⊢¨'_'),'∘∘''÷:=⋄*|-\¨¨¨_||~~~~]---_'
ⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ⍎⍕⍞⌹⍠⌸⋄⍟⌽⊖⍉⍣⍤⍨⍙⍋⍒⍫⍱⍲⍬⌷⌿⍀⍪⍷

Nice! What about..
      '⊂⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕|=<>>∇○⊤⊥⍺⍵⍳;⋄∘○∘' ∆bs '_∘○∧∨↑↓←→/\≠?~/__¨¨¨¨________○'
_∘○∧∨↑↓←→/\≠?~/__¨¨¨¨________○

I was expecting these:
      ⊆⌻⌼⍓⍌⍐⍗⍇⍈⍁⍂⍯⍰⍭≠≤≥⍩⍢⍥⍡⍊⍶⍹⍸⍮⍚⍛⍜⌾


So, Toto, this is not paper terminal any more!

-wm
Veli-Matti
 
Posts: 49
Joined: Sat Nov 28, 2009 3:12 pm


Return to APLX

Who is online

Users browsing this forum: No registered users and 1 guest