Author Topic: how-to select and copy textmsg in SDL-version of game?  (Read 176 times)

Offline vivat

  • Survivor
  • ***
  • Posts: 652
    • View Profile
how-to select and copy textmsg in SDL-version of game?
« on: September 28, 2017, 06:37:57 AM »
Hi!
when i run FAR cammander - i can select part of the screen by the edit-select(and <Enter> after select) but in the CDDA i can not - there's no such option in the menu in the head of the screen. maybe there is third-side program which CAN do copy of the text screen in the SDL text programs?

thanks.

Offline PlasmaChroma

  • Zombie Food
  • *
  • Posts: 10
    • View Profile
Re: how-to select and copy textmsg in SDL-version of game?
« Reply #1 on: September 28, 2017, 12:45:05 PM »
Simple answer, you likely can't do this easily.

In SDL version what you are getting on screen is image content, the glyphs are cached and later output to SDL_Rect.

To be able to copy from the window you'd have to do some kind of raw capture + OCR to get it back to pure text.

Offline §k

  • Survivor
  • ***
  • Posts: 512
    • View Profile
Re: how-to select and copy textmsg in SDL-version of game?
« Reply #2 on: September 28, 2017, 02:51:39 PM »
Is it possible when you select ascii in tiles build?

Offline vivat

  • Survivor
  • ***
  • Posts: 652
    • View Profile
Re: how-to select and copy textmsg in SDL-version of game?
« Reply #3 on: September 28, 2017, 04:59:13 PM »
http://dev.narc.ro/cataclysm/jenkins-latest/Windows_x64/Tiles/ - it is a SDL version?
curses version can get me option to copy from the screen?

Offline i2amroy

  • Contributor
  • Survivor
  • ****
  • Posts: 2783
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: how-to select and copy textmsg in SDL-version of game?
« Reply #4 on: September 28, 2017, 06:24:16 PM »
I believe so yeah. Tiles == SDL, ASCII == Curses.