'What's the codes such as [?2004l means in SSH result?

Got such result when using ssh2 in electron:

 [?2004l
[?1h=
[1;24r[m[m[0m[H[J[2;1H[1m~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~[0m[24;63H0,0-1[9CAll[6;32HVIM - Vi IMproved[8;33Hversion 8.2.2434[9;29Hby Bram Moolenaar et al.[10;21HModified by [email protected][11;19HVim is open source and freely distributable[13;26HBecome a registered Vim user![14;18Htype :help register[1m[0m for information[16;18Htype :q[1m[0m[15Cto exit[17;18Htype :help[1m[0m or [1m[0m for on-line help[18;18Htype :help version8[1m[0m for version info[1;1H

[24;1HType :qa and press to exit Vim[24;63H[K[24;63H0,0-1[9CAll[1;1H [24;63H[K[24;63H0,0-1[9CAll[1;1H

I wonder what such codes [xxx means and didn't get any result after searching, only to found similar one in https://github.com/vim/vim/blob/master/runtime/doc/term.txt.

Sincerely hope someone can help me understanding these code.

connects[id].shell({ pty: true }, (err, stream) => {
                                if (err) {
                                    throw err;
                                }
                                streams[id] = stream;
                                stream
                                    .on('close', (code, signal) => {
                                        console.log('Stream :: close :: code: ' + code + ', signal: ' + signal);
                                        connects[id].end();
                                    })
                                    .on('data', (data) => {
                                        console.log('connect_on_data: ' + data);
                                        return;
                                    }).stderr.on('data', (data) => {
                                        console.log('connect_on_error: ' + data);
                                        return;
                                    });
                            });   


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source