Opened 4 days ago

Last modified 4 days ago

#133 new enhancement

Add support for clipboard paste (or even copy) in Oni Dev console

Reported by: s10k Owned by: Alloc
Priority: minor Component: Daodan/Win
Keywords: Cc:

Description (last modified by s10k)

As funktotheface mentioned on the discord server it would be very nice to have clipboard paste ability on the Oni Dev console.

It will make testing commands much easier without having to type them manually.

Accordingly to gumby it shouldn't be that hard to implement.

From what I understood it should work like this on Windows:

You register the Oni Window in the Windows clipboard:

https://docs.microsoft.com/en-us/windows/desktop/dataxchg/using-the-clipboard

(clipboard viewer window method should be preferred for Windows 2000 backwards comparability).

Once oni window is registered on clipboard viewer, we can receive a notification everytime a user does ctrl + v on oni Window.

If the developer mode console is active, we should read the memory on clipboard and if it is valid ASCII text, we should copy it to the address where Oni Dev mode current command is.

If possible it would also be nice to have the copy ability, so if the user trigger ctrl + c when oni dev mode is active (with a command highlight), the current command would be copied for the windows clipboard.

Change History (1)

comment:1 Changed 4 days ago by s10k

  • Description modified (diff)
  • Summary changed from Add support for clipboard past (or even copy) in Oni Dev console to Add support for clipboard paste (or even copy) in Oni Dev console
Note: See TracTickets for help on using tickets.