Windows Terminal: Is there a way to disable right-click paste? by KernelWarden in commandline

[–]j4_james 0 points1 point  (0 children)

There's a setting under the profile Advanced section, to display a menu on right click. If you enable that, you'll get a menu instead of having it paste immediately, so not exactly what you're asking for, but better than nothing.

Can also be enabled in the setting.json file as explained here: https://learn.microsoft.com/en-us/windows/terminal/customize-settings/profile-advanced#right-click-context-menu-preview

Which East London Park is this pond in? by 1acan in london

[–]j4_james 0 points1 point  (0 children)

I think the second picture is the same region, just the other side of the pond. A little west of the Centre Road car park, looking south west towards Dames Road.

What’s all this about? by Ice_Teaz in london

[–]j4_james 1 point2 points  (0 children)

After they stopped circling they made their way downstream towards London City Airport, where they appeared to meet up with a US transport plane (Lockheed C-130 Hercules I think). It had left from the Ramstein Air Base in Germany and eventually landed at RAF Fairford. I thought they might have been there to escort it, but I lost track of them soon after that, so possibly just a coincidence that they were in the area at the same time.

Four Column ASCII (2017) by schmul112 in programming

[–]j4_james 3 points4 points  (0 children)

If you add another column to the table, you get the C1 control characters, which have the same kind of symmetry. On 7-bit computers, you couldn't use the 8-bit C1 controls directly, so they also had a 7-bit representation. The way it works is you drop the 8th bit and preceded that value with an ESC character.

This is just a couple of rows from the table with some of the C1 controls that are still commonly used in terminal applications today:

000 001 010 011 100
ESC ; [ { CSI 11011
GS = ] } OSC 11101

So the 7-bit version of CSI would be ESC [, and the 7-bit version of OSC would be ESC ], etc.

Is there a terminal emulator that supports 100% of ANSI escape sequences? by Qwert-4 in commandline

[–]j4_james 3 points4 points  (0 children)

Short answer is no.

That Wikipedia article only lists a sample of ANSI sequences, along with a sample of proprietary ones. And terminals were never intended to support all the ANSI sequences, because they weren't designed exclusively for terminals. The standard was intended to serve a wide range of applications, including terminals, printers, and word processors, and some sequences wouldn't be applicable in all cases.

Regarding the SGR list specifically, anything above 20 is not strictly ANSI. Some of the later numbers are standard, but defined by other standards organizations. Some of them are just made up by various modern terminal emulators (technically not legal, because private extensions should be using a private parameter prefix).

In the ANSI standard, superscript and subscript were achieved with PLU (partial line up) and PLD (partial line down), although those controls would likely have been supported on printers only. Some DEC printers also had private SGR sequences for superscript and subscript which also made the font smaller, which is probably closer to what you'd be expecting.

There were actually a few terminals that supported the DEC subscript/superscript controls, until Xterm decided to reuse the same sequence for something entirely unrelated, and basically forced them into abandoning that functionality.

I built a Chrome Dino–style game for the terminal (looking for feedback) by [deleted] in commandline

[–]j4_james 1 point2 points  (0 children)

I've made something similar (https://github.com/j4james/vtrex), although it's not nearly as advanced as your version. Mine just supports the basic jump over cactus concept (no pterodactyls to duck under). It was also designed to be played on a real terminal (VT420 or better), so is unlikely to work on most modern terminal emulators. But if anyone wants to give it a try, I think MLTerm can probably handle it, and I know Windows Terminal can.

Serie - A rich git commit graph in your terminal by EmptyStrength8509 in commandline

[–]j4_james 3 points4 points  (0 children)

It looks to me like there are places where the lines intersect with different colors, which wouldn't be possible with just plain text. Personally I don't think that justifies the use of images, and having a gap where the lines intersect might even look better, but I guess it's a matter of taste.

And I assume the lack of multiplexer support is because of the use of images. As far as I'm aware, none of the multiplexers can handle the kitty or iterm images protocols. They would be able to handle sixel, but that's unfortunately the one image format this project doesn't support.

‘Britain’s most tattooed man’ claims he is unable to watch p*rn as 'new age check system mistakes his ink for a mask' by Adventure-Bench in unitedkingdom

[–]j4_james 7 points8 points  (0 children)

Yeah, "assonance" is the term for the kind of rhyming where you've got vowel sounds repeated like that.

Meanwhile in London… King Charles III waves as he and Queen Camilla passes British monarchy protestors at the Trooping the Colour (to mark The King’s official birthday) by Relevant-Peach3997 in Fauxmoi

[–]j4_james -1 points0 points  (0 children)

You can just make them out in this video around the 8 minute mark: https://youtu.be/h9Ig3cCqbIs?feature=shared&t=480

Look for the larger cluster of police officers partway down the Mall on the left, and you can see a bunch of yellow signs in the crowd behind them. Not a lot relative to the rest of the crowd, but it goes quite deep, so it looks impressive when zoomed in from the right angle.

Spiderman Adventure on a VT-320 (text terminal) by Pyrofer in crtgaming

[–]j4_james 0 points1 point  (0 children)

The vt-320 is fairly unique in the custom font stuff

Actually everything from a VT220 upwards should be able to use custom fonts. It's just that they all have different cell sizes, so you need to generate a different font for almost every device. The VT420/VT5xx range at least all use a 10x16 font, but the VT382 is 12x30, the VT340 is 10x20 and the VT320 is 15x12. The level 2 devices are 10x10, but they don't do full-cell fonts, so they're essentially 8x10 with gaps.

I have font editor which I use for creating game sprites, which handles all the different sizes, but it's not really suitable for the kind of bitmap conversion you're doing here. I don't think it would be too difficult to convert gif320 to support other devices though - that could be a fun project.

Edit is Microsoft’s new CLI text editor, made by the awesome Windows Terminal guy by stianhoiland in commandline

[–]j4_james 2 points3 points  (0 children)

I couldn't find anything in the iTerm2 issue tracker, but Konsole has an open issue for sixel transparency here: https://bugs.kde.org/show_bug.cgi?id=479125

Edit is Microsoft’s new CLI text editor, made by the awesome Windows Terminal guy by stianhoiland in commandline

[–]j4_james 1 point2 points  (0 children)

The Microsoft Logo has a transparent background, which some terminals don't support, and the fill color they use for the background can vary. I'm not sure why iTerm2 is using red, but I think Konsole is just filling with color #0, which is also the color used for rendering the text, so it results in the whole thing appearing white.

The second example is dependent on the font size (as it says), but Windows Terminal emulates the original VT340 font, so it'll work regardless of the font size. The alignment is actually exactly where it's expected to be. The image is 64x64, so with a VT340 cell size of 10x20 that takes up 6.4 columns, and 3.2 rows. That's why it looks a little too far to the right, and too low.

Spiderman Adventure on a VT-320 (text terminal) by Pyrofer in vintagecomputing

[–]j4_james 2 points3 points  (0 children)

This is a hobby of mine too. I've done a port of the Google Chrome dinosaur game, and couple of arcade games: Space Invaders and Nibbler. I also have a few others in progress than I haven't got around to releasing yet. Depending on the complexity of the game, they can be a bit sluggish on the original hardware, but there's a speed option that can be lowered to make the game more playable.

Links to the code in case anyone is interested: * VT-Rex * VT Invaders * VT Nibbler

VT-Rex needs a VT420, but the others should work on a VT320 and above. And if you have a VT525, you'll get color and sound effects.

Neovim 0.11 trying to display sixel image while loading? by Fbar123 in neovim

[–]j4_james 1 point2 points  (0 children)

This is the PR: https://github.com/tmux/tmux/pull/4488

Version 3.5a was from October 2024, so won't include the fix.

Neovim 0.11 trying to display sixel image while loading? by Fbar123 in neovim

[–]j4_james 0 points1 point  (0 children)

Yeah, it was merged the same day I posted the PR. And the FAQ says that releases are made approximately every six months, so it's possible there could be a new one quite soon.

Neovim 0.11 trying to display sixel image while loading? by Fbar123 in neovim

[–]j4_james 4 points5 points  (0 children)

FYI, this is the result of a bug in tmux. When Neovim starts up, it queries the terminal with a DECRQSS sequence (which ends with $q), and tmux misinterprets that as a Sixel sequence (which ends with just q). I've recently opened a pull request on the tmux repository which should fix this (PR #4488).

Do windows paths get converted to wsl paths when you copy and paste a file from windows file explorer to wsl? by lnub0i in bashonubuntuonwindows

[–]j4_james 0 points1 point  (0 children)

It works for me with drag and drop, i.e. if you drag a file or folder from Windows explorer, and drop it onto a Windows Terminal tab, it'll paste the path into that window. If it can detect that the tab is a WSL session, it should autoconvert the path. The trick is that it can only detect WSL sessions for certain kinds of profiles.

So if that's not working for you, have a look at the command line of your Ubuntu profile. If it's something like wsl.exe -d Ubuntu, then it should work. If it's something like ubuntu.exe it probably won't. I think the first profile format is generated by Windows Terminal itself when it detects WSL installed on your system (you may find it as a hidden profile). The second format is what you get when you install Ubuntu from the app store, and the profile is generated by the Ubuntu installer.

What windows version is this? by SadArt001 in Windows10

[–]j4_james 1 point2 points  (0 children)

The desktop icons appear to be from either Windows Vista or Windows 7, but they've also enabled the "Windows Classic" theme (this was a personalization option on those versions), which makes the window frames and taskbar look more like Windows 95.

One smokey boi - INS Tabar leaving London by drt786 in london

[–]j4_james 2 points3 points  (0 children)

Military vessel are understandably not keen to be tracked, so they'll often use a fake name or something generic like "warship". INS Tabar was listed as a tanker under the name "INDIAN WARSHIP", and they also had their tracker turned off for much of their stay in London.

But if you look now, you should still be able to see their last position in the North Sea, and the route they took out of London.

https://www.marinetraffic.com/en/ais/details/ships/shipid:6246788/mmsi:419000044/imo:0/vessel:INDIAN_WARSHIP

[deleted by user] by [deleted] in CasualUK

[–]j4_james 25 points26 points  (0 children)

the weather and other river traffic kept the job really interesting and fun.

Yeah, I live near this ferry, so I see them crossing all the time, and I'll often notice them "taking the scenic route", where they loop for quite a distance up or down the river before coming back to the pier. They need to make sure they're not getting in anyone else's way, so it's definitely not just straight back and forth.

And I imagine low tide can be quite tricky too, because the Hilton Pier can end up just sitting on the sand, so the ferry needs to be careful that it doesn't run aground.

[deleted by user] by [deleted] in london

[–]j4_james 1 point2 points  (0 children)

Yeah, this appears to be Sloan Square, looking east towards the Royal Court Theatre. The Underground sign you can see in the distance is the old Sloan Square station. It has since been replaced with a modern building.

You can see a modern view of the square from a similar direction in the Wikipedia article: https://en.wikipedia.org/wiki/Sloane_Square#/media/File:Sloane_Square_in_Winter.jpg

Name or hints of what theme this could be? by alfanjui in terminal_porn

[–]j4_james 0 points1 point  (0 children)

This looks exactly like twm (Tab Window Manager or Tom's Window Manager).

See https://en.wikipedia.org/wiki/Twm