Adding textfield option on UI

I am currently using the ofxHistoryPlot addon which draws a history plot of some data I am sending in over the serial port. I would like to add a text input box/field on the UI. The point of this is that once text has been entered I want to create a new directory named with that corresponding text and some of my serial data will be put in that directory.

I am currently taking user text input via the console, but that pauses my code meaning I lose some of my serial data.So how would I add a text box/field into my UI? Any help would be appreciated! Thanks.